From aafcab1e7237d3ccbc80945eb8379a985d567a53 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 18 May 2015 13:10:34 -0300 Subject: ForceScheme now (hopefully) does not produce NaNs. Removed the Glyph class and placed all scatterplot drawing code inside the Scatterplot class. --- mp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mp.h') diff --git a/mp.h b/mp.h index b3f9c75..6508d9d 100644 --- a/mp.h +++ b/mp.h @@ -6,6 +6,6 @@ static const double EPSILON = 1e-3; double euclidean(const arma::rowvec &x1, const arma::rowvec &x2); arma::mat dist(const arma::mat &X, double (*distCalc)(const arma::rowvec &, const arma::rowvec &) = euclidean); arma::mat lamp(const arma::mat &X, const arma::uvec &sampleIndices, const arma::mat &Ys); -arma::mat forceScheme(const arma::mat &D, arma::mat &Y, size_t maxIter = 20, double tol = 1e-3, double fraction = 0.25); +arma::mat forceScheme(const arma::mat &D, arma::mat &Y, size_t maxIter = 20, double tol = 1e-3, double fraction = 8); } // namespace mp -- cgit v1.2.3