aboutsummaryrefslogtreecommitdiff
path: root/interactionhandler.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-05-20 18:53:07 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-05-21 18:09:16 -0300
commitb3c7ac156e1c4ac5d7455ce61e89549291ac85b1 (patch)
tree024ee0050cf68534b2e977d48c266303a2c9bdc8 /interactionhandler.h
parent02e2ebf10c30ca278dc8a85649c6a7db87858cde (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.h33
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