aboutsummaryrefslogtreecommitdiff
path: root/effectivenessobserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'effectivenessobserver.h')
-rw-r--r--effectivenessobserver.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/effectivenessobserver.h b/effectivenessobserver.h
new file mode 100644
index 0000000..8331916
--- /dev/null
+++ b/effectivenessobserver.h
@@ -0,0 +1,26 @@
+#ifndef EFFECTIVEINTERACTIONENFORCER_H
+#define EFFECTIVEINTERACTIONENFORCER_H
+
+#include <QObject>
+#include <armadillo>
+
+class EffectiveInteractionEnforcer : public QObject
+{
+ Q_OBJECT
+public:
+ EffectiveInteractionEnforcer(const arma::uvec &sampleIndices);
+
+signals:
+ void effectivenessChanged(const arma::vec &effectiveness);
+
+public slots:
+ void setSelection(const arma::uvec &selection);
+ void setMeasureDifference(const arma::vec &measure);
+
+private:
+ arma::mat m_effectiveness;
+ arma::uvec m_sampleIndices, m_selection;
+ arma::vec m_measure;
+};
+
+#endif // EFFECTIVEINTERACTIONENFORCER_H