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. --- measures.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 measures.cpp (limited to 'measures.cpp') diff --git a/measures.cpp b/measures.cpp new file mode 100644 index 0000000..fe4077a --- /dev/null +++ b/measures.cpp @@ -0,0 +1,17 @@ +#include "mp.h" + +arma::vec mp::neighborhoodPreservation(const arma::mat &distA, + const arma::mat &distB, + int k) +{ + // TODO + return arma::vec(distA.n_rows, arma::fill::zeros); +} + +arma::vec mp::silhouette(const arma::mat &distA, + const arma::mat &distB, + const arma::vec &labels) +{ + // TODO + return arma::vec(distA.n_rows, arma::fill::zeros); +} -- cgit v1.2.3