From 6da67a32e56c101b9334d2c6f33bd5238d082330 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Fri, 24 Jul 2015 13:01:16 -0300 Subject: Color mapping in Scatterplot and initial measures. - Scatterplot: can now map any floating point data to colors; - Scatterplot: somewhat optimized geometry/material updates; - Removed anything related to labels where it was not necessary; - Added observers to implement distortion (via measures) visualization; - Added skeleton implementations of NP and silhouette. --- npdistortion.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 npdistortion.h (limited to 'npdistortion.h') 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 -- cgit v1.2.3