aboutsummaryrefslogtreecommitdiff
path: root/manipulationhandler.h
blob: c5db8e86987c5fe2aff727a91c5ff3847b2be709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef MANIPULATIONHANDLER_H
#define MANIPULATIONHANDLER_H

#include <armadillo>
#include <nod.hpp>

class ManipulationHandler
{
public:
    enum Technique {
        TECHNIQUE_PLMP,
        TECHNIQUE_LAMP,
        TECHNIQUE_LSP,
        TECHNIQUE_PEKALSKA
    };

    ManipulationHandler(const arma::mat &X,
                        const arma::uvec &cpIndices);

    void setTechnique(Technique technique) { m_technique = technique; }

    nod::signal<void(const arma::mat &)> mapChanged;
    void setCP(const arma::mat &Ys);

private:
    arma::mat m_X;
    arma::uvec m_cpIndices;
    Technique m_technique;
};

#endif // MANIPULATIONHANDLER_H