diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-12 17:37:20 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-12 17:37:26 +0100 |
commit | a5378abcbb3d8ee8dc3b76380dd50a43a2eec22e (patch) | |
tree | 11f29228bdb020f953fbabcfa397b9254d89db4a /lamp.cpp | |
parent | 44914a9253408d6903272f69bacac1a9144b0e18 (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.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); + } } |