blob: 3dbeb8a87026e08bb73650420e2b8b3ec2f31e8b (
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
|
#ifndef INTERACTIONHANDLER_H
#define INTERACTIONHANDLER_H
#include <armadillo>
#include "scatterplot.h"
class InteractionHandler : public QObject
{
Q_OBJECT
public:
enum InteractiveTechnique {
TECHNIQUE_PLMP,
TECHNIQUE_LAMP,
TECHNIQUE_LSP
};
InteractionHandler(const arma::mat &X, const arma::vec &labels, const arma::uvec &sampleIndices);
signals:
void subsampleChanged(const arma::mat &Y);
public slots:
void setSubsample(const arma::mat &Ys);
private:
arma::mat m_X;
arma::vec m_labels;
arma::uvec m_sampleIndices;
InteractiveTechnique m_technique;
};
#endif // INTERACTIONHANDLER_H
|