aboutsummaryrefslogtreecommitdiff
path: root/npdistortion.cpp
blob: 1994c743ac947f81e33640d6d208d183610d0417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "npdistortion.h"

#include "mp.h"

NPDistortion::NPDistortion(int k)
    : m_k(k)
{
}

arma::vec NPDistortion::measure(const arma::mat &distA, const arma::mat &distB)
{
    return mp::neighborhoodPreservation(distA, distB, m_k);
}