#include <HistogramDistances.h>
Public Member Functions | |
virtual double | distance (const std::vector< std::vector< Numeric > > &first, const std::vector< std::vector< Numeric > > &last) const |
virtual double | distance (const std::vector< Numeric > &first, const std::vector< Numeric > &last) const =0 |
Representation of an abstract distance function between histograms. This class represents an abstract function to compute the distance between histograms.
Definition at line 36 of file HistogramDistances.h.
double HistogramDistance< Numeric >::distance | ( | const std::vector< std::vector< Numeric > > & | first, | |
const std::vector< std::vector< Numeric > > & | last | |||
) | const [inline, virtual] |
Computes the distance between the first and last histogram (2D).
Reimplemented in EuclideanDistance< Numeric >, and BatthacharyyaDistance< Numeric >.
Definition at line 6 of file HistogramDistances.hpp.
virtual double HistogramDistance< Numeric >::distance | ( | const std::vector< Numeric > & | first, | |
const std::vector< Numeric > & | last | |||
) | const [pure virtual] |
Computes the distance between the first and last histogram (1D).
Implemented in EuclideanDistance< Numeric >, Chi2Distance< Numeric >, SymmetricChi2Distance< Numeric >, BatthacharyyaDistance< Numeric >, KullbackLeiblerDistance< Numeric >, and JensenShannonDistance< Numeric >.