aboutsummaryrefslogtreecommitdiff
path: root/interactionhandler.h
blob: ace192af0aeeeb41e7357dde9db432be65b2b687 (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
32
33
34
35
36
37
#ifndef INTERACTIONHANDLER_H
#define INTERACTIONHANDLER_H

#include <QObject>
#include <armadillo>

class InteractionHandler : public QObject
{
    Q_OBJECT
public:
    Q_ENUMS(Technique)
    enum Technique {
        TECHNIQUE_PLMP,
        TECHNIQUE_LAMP,
        TECHNIQUE_LSP,
        TECHNIQUE_PEKALSKA
    };

    InteractionHandler(const arma::mat &X, const arma::uvec &cpIndices);
    void setTechnique(Technique technique);

signals:
    void cpChanged(const arma::mat &Y);

public slots:
    void setCP(const arma::mat &Ys);

protected:
    InteractionHandler() {}

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

#endif // INTERACTIONHANDLER_H