aboutsummaryrefslogtreecommitdiff
path: root/npdistortion.h
diff options
context:
space:
mode:
Diffstat (limited to 'npdistortion.h')
-rw-r--r--npdistortion.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/npdistortion.h b/npdistortion.h
new file mode 100644
index 0000000..a84f63a
--- /dev/null
+++ b/npdistortion.h
@@ -0,0 +1,18 @@
+#ifndef NPDISTORTION_H
+#define NPDISTORTION_H
+
+#include "distortionobserver.h"
+
+class NPDistortion : public DistortionObserver
+{
+public:
+ NPDistortion(const arma::mat &X, const arma::uvec &sampleIndices, int k = 10);
+
+protected:
+ arma::vec measureFunc(const arma::mat &distA, const arma::mat &distB);
+
+private:
+ int m_k;
+};
+
+#endif // NPDISTORTION_H