aboutsummaryrefslogtreecommitdiff
path: root/npdistortion.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-09-01 20:45:02 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-09-01 20:45:02 -0300
commita1956a4ff879eb2d34c7a0ca448f48ee6e64ce99 (patch)
treeb958291afa29268517633a8490920ae38dfcf2d8 /npdistortion.h
parentf405ac30db93ed9f2adb739c3c09b2ce9369fee6 (diff)
Improvements related to visual representation of distortions.
- New continuous color scale class; - Improvements in signal handler for calculating distortions; - Implementation of the NP(k) measure.
Diffstat (limited to 'npdistortion.h')
-rw-r--r--npdistortion.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/npdistortion.h b/npdistortion.h
index a84f63a..a70616d 100644
--- a/npdistortion.h
+++ b/npdistortion.h
@@ -1,15 +1,13 @@
#ifndef NPDISTORTION_H
#define NPDISTORTION_H
-#include "distortionobserver.h"
+#include "distortionmeasure.h"
-class NPDistortion : public DistortionObserver
+class NPDistortion : public DistortionMeasure
{
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);
+ NPDistortion(int k = 10);
+ arma::vec measure(const arma::mat &distA, const arma::mat &distB);
private:
int m_k;