diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-25 19:55:52 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-25 19:55:52 +0100 |
commit | 60a0bfb863aa2a05bafd943423c284f5c2d68863 (patch) | |
tree | f6faae437cbdd6b10a37a64161865f69650b13e1 /interactionhandler.cpp | |
parent | 6adb0f62c7a51b77725dc5cfe37ba59ab8f8cc73 (diff) |
Scatterplots & splat now share the same scaling.
Diffstat (limited to 'interactionhandler.cpp')
-rw-r--r-- | interactionhandler.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/interactionhandler.cpp b/interactionhandler.cpp deleted file mode 100644 index 64304c7..0000000 --- a/interactionhandler.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "interactionhandler.h" - -#include "mp.h" - -InteractionHandler::InteractionHandler(const arma::mat &X, - const arma::uvec &cpIndices) - : m_X(X) - , m_Y(X.n_rows, 2) - , m_cpIndices(cpIndices) - , m_technique(TECHNIQUE_LAMP) -{ -} - -void InteractionHandler::setTechnique(InteractionHandler::Technique technique) -{ - if (m_technique == technique) - return; - - m_technique = technique; -} - -void InteractionHandler::setCP(const arma::mat &Ys) -{ - switch (m_technique) { - case TECHNIQUE_PLMP: - mp::plmp(m_X, m_cpIndices, Ys, m_Y); - break; - case TECHNIQUE_LSP: - // TODO - // mp::lsp(m_X, m_cpIndices, Ys, m_Y); - break; - case TECHNIQUE_LAMP: - mp::lamp(m_X, m_cpIndices, Ys, m_Y); - break; - case TECHNIQUE_PEKALSKA: - // TODO - // mp::pekalska(m_X, m_cpIndices, Ys, m_Y); - break; - } - - emit cpChanged(m_Y); -} |