diff options
Diffstat (limited to 'interactionhandler.cpp')
-rw-r--r-- | interactionhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interactionhandler.cpp b/interactionhandler.cpp index 5225be9..9feaf0f 100644 --- a/interactionhandler.cpp +++ b/interactionhandler.cpp @@ -6,6 +6,7 @@ InteractionHandler::InteractionHandler(const arma::mat &X, const arma::vec &labels, const arma::uvec &sampleIndices) : m_X(X) + , m_Y(X.n_rows, 3) , m_labels(labels) , m_sampleIndices(sampleIndices) , m_Y(X.n_rows, 3) @@ -20,7 +21,7 @@ void InteractionHandler::setSubsample(const arma::mat &Ys) case TECHNIQUE_PLMP: case TECHNIQUE_LSP: case TECHNIQUE_LAMP: - m_Y.cols(0, 1) = mp::lamp(m_X, m_sampleIndices, Ys); + mp::lamp(m_X, m_sampleIndices, Ys, m_Y); break; } |