blob: 71db85bef9c65f683721cfcf04a9dc1e05578dfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "npdistortion.h"
#include "mp.h"
NPDistortion::NPDistortion(const arma::mat &X, const arma::uvec &sampleIndices, int k)
: DistortionObserver(X, sampleIndices)
, m_k(k)
{
}
arma::vec NPDistortion::measureFunc(const arma::mat &distA, const arma::mat &distB)
{
return mp::neighborhoodPreservation(distA, distB, m_k);
}
|