aboutsummaryrefslogtreecommitdiff
path: root/lamp.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-12 17:37:20 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-12 17:37:26 +0100
commita5378abcbb3d8ee8dc3b76380dd50a43a2eec22e (patch)
tree11f29228bdb020f953fbabcfa397b9254d89db4a /lamp.cpp
parent44914a9253408d6903272f69bacac1a9144b0e18 (diff)
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
Diffstat (limited to 'lamp.cpp')
-rw-r--r--lamp.cpp4
1 files changed, 4 insertions, 0 deletions
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);
+ }
}