aboutsummaryrefslogtreecommitdiff
path: root/interactionhandler.h
diff options
context:
space:
mode:
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