From a5378abcbb3d8ee8dc3b76380dd50a43a2eec22e Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 12 Jan 2016 17:37:20 +0100 Subject: Scatterplot: autoscaling & signals. * Added methods & signal/slots to handle auto/manual scaling * The subsample plot is now scaled by the full data plot, naturally superimposing them * LAMP was corrected in order to always preserve the mapping of the subsample --- lamp.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lamp.cpp') diff --git a/lamp.cpp b/lamp.cpp index 7d36877..293ce30 100644 --- a/lamp.cpp +++ b/lamp.cpp @@ -54,4 +54,8 @@ void mp::lamp(const arma::mat &X, const arma::uvec &sampleIndices, const arma::m Y(i, arma::span(0, 1)) = (point - Xtil) * M + Ytil; } + + for (arma::uword i = 0; i < sampleSize; i++) { + Y.row(sampleIndices[i]) = Ys.row(i); + } } -- cgit v1.2.3