aboutsummaryrefslogtreecommitdiff
path: root/interactionhandler.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-13 11:09:06 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-13 11:09:06 +0100
commitb1c4eac81a46c41ff9f36f4226b9058bbb379d3b (patch)
treeaf519d35228085988bec8cc36a2f0b8393f5d281 /interactionhandler.cpp
parenta621eb3ee0bf04e998b0e8479e8166f25e25c268 (diff)
Subsamples/samples renamed to control points (CP) where possible.
Diffstat (limited to 'interactionhandler.cpp')
-rw-r--r--interactionhandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/interactionhandler.cpp b/interactionhandler.cpp
index 4046acc..64304c7 100644
--- a/interactionhandler.cpp
+++ b/interactionhandler.cpp
@@ -3,10 +3,10 @@
#include "mp.h"
InteractionHandler::InteractionHandler(const arma::mat &X,
- const arma::uvec &sampleIndices)
+ const arma::uvec &cpIndices)
: m_X(X)
, m_Y(X.n_rows, 2)
- , m_sampleIndices(sampleIndices)
+ , m_cpIndices(cpIndices)
, m_technique(TECHNIQUE_LAMP)
{
}
@@ -19,24 +19,24 @@ void InteractionHandler::setTechnique(InteractionHandler::Technique technique)
m_technique = technique;
}
-void InteractionHandler::setSubsample(const arma::mat &Ys)
+void InteractionHandler::setCP(const arma::mat &Ys)
{
switch (m_technique) {
case TECHNIQUE_PLMP:
- mp::plmp(m_X, m_sampleIndices, Ys, m_Y);
+ mp::plmp(m_X, m_cpIndices, Ys, m_Y);
break;
case TECHNIQUE_LSP:
// TODO
- // mp::lsp(m_X, m_sampleIndices, Ys, m_Y);
+ // mp::lsp(m_X, m_cpIndices, Ys, m_Y);
break;
case TECHNIQUE_LAMP:
- mp::lamp(m_X, m_sampleIndices, Ys, m_Y);
+ mp::lamp(m_X, m_cpIndices, Ys, m_Y);
break;
case TECHNIQUE_PEKALSKA:
// TODO
- // mp::pekalska(m_X, m_sampleIndices, Ys, m_Y);
+ // mp::pekalska(m_X, m_cpIndices, Ys, m_Y);
break;
}
- emit subsampleChanged(m_Y);
+ emit cpChanged(m_Y);
}