diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-20 18:53:07 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-20 18:53:07 -0300 |
commit | 07eb2224a70e29683ec9fd5008662ede32c05639 (patch) | |
tree | 024ee0050cf68534b2e977d48c266303a2c9bdc8 /interactionhandler.h | |
parent | ecc6ada9f64a9858f29b5da2e733fec0ec6f8bad (diff) |
Nearly complete implementation of interaction.
Interaction still does not work due to signals not being correctly emitted.
Diffstat (limited to 'interactionhandler.h')
-rw-r--r-- | interactionhandler.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/interactionhandler.h b/interactionhandler.h new file mode 100644 index 0000000..3dbeb8a --- /dev/null +++ b/interactionhandler.h @@ -0,0 +1,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 |