diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-07-24 13:01:16 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-07-24 13:01:16 -0300 |
commit | 6da67a32e56c101b9334d2c6f33bd5238d082330 (patch) | |
tree | 87d6f4dbc4b1d926be75c432ede2578ab45d8b33 /npdistortion.h | |
parent | b7e1060b7cb71b30b91cc65c011b719e255c0a06 (diff) |
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.
Diffstat (limited to 'npdistortion.h')
-rw-r--r-- | npdistortion.h | 18 |
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 |