diff options
Diffstat (limited to 'manipulationhandler.cpp')
-rw-r--r-- | manipulationhandler.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/manipulationhandler.cpp b/manipulationhandler.cpp index f764eaf..f561ad7 100644 --- a/manipulationhandler.cpp +++ b/manipulationhandler.cpp @@ -3,22 +3,16 @@ #include <algorithm> #include "mp.h" -#include "numericrange.h" ManipulationHandler::ManipulationHandler(const arma::mat &X, const arma::uvec &cpIndices, ProjectionHistory *history) : m_X(X) , m_cpIndices(cpIndices) - , m_rpIndices(X.n_rows - cpIndices.n_elem) , m_history(history) , m_technique(TECHNIQUE_LAMP) { Q_ASSERT(history); - - NumericRange<arma::uword> allIndices(0, m_X.n_rows); - std::set_symmetric_difference(allIndices.cbegin(), allIndices.cend(), - m_cpIndices.cbegin(), m_cpIndices.cend(), m_rpIndices.begin()); } void ManipulationHandler::setCP(const arma::mat &Ys) @@ -39,8 +33,6 @@ void ManipulationHandler::setCP(const arma::mat &Ys) break; } - emit cpChanged(Y.rows(m_cpIndices)); - emit rpChanged(Y.rows(m_rpIndices)); emit mapChanged(Y); } @@ -51,7 +43,5 @@ void ManipulationHandler::setRewind(double t) } arma::mat Y = m_history->Y() * t + m_history->prev() * (1.0 - t); - emit cpRewound(Y.rows(m_cpIndices)); - emit rpRewound(Y.rows(m_rpIndices)); emit mapRewound(Y); } |