latest version v1.9 - last update 10 Apr 2010 |
Computes the bhattacharyya distance of two distributions. More...
#include <ltiBhattacharyyaDistance.h>
Public Member Functions | |
bhattacharyyaDistance () | |
bhattacharyyaDistance (const bhattacharyyaDistance &other) | |
virtual | ~bhattacharyyaDistance () |
virtual const char * | getTypeName () const |
double | apply (const dmatrix &cluster1, const dmatrix &cluster2) const |
bool | apply (const dmatrix &cluster1, const dmatrix &cluster2, double &distance) const |
double | apply (const dvector ¢roid1, const dmatrix &cov1, const dvector ¢roid2, const dmatrix &cov2) const |
bool | apply (const dvector ¢roid1, const dmatrix &cov1, const dvector ¢roid2, const dmatrix &cov2, double &distance) const |
bhattacharyyaDistance & | copy (const bhattacharyyaDistance &other) |
bhattacharyyaDistance & | operator= (const bhattacharyyaDistance &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Computes the bhattacharyya distance of two distributions.
Either two matrices with the distributions, with each row representing a data point, or the means and the covarianz matrices of both distributions are given the the functor.
lti::bhattacharyyaDistance::bhattacharyyaDistance | ( | ) |
default constructor
lti::bhattacharyyaDistance::bhattacharyyaDistance | ( | const bhattacharyyaDistance & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::bhattacharyyaDistance::~bhattacharyyaDistance | ( | ) | [virtual] |
destructor
bool lti::bhattacharyyaDistance::apply | ( | const dvector & | centroid1, | |
const dmatrix & | cov1, | |||
const dvector & | centroid2, | |||
const dmatrix & | cov2, | |||
double & | distance | |||
) | const |
compute the distance between the two distributions
centroid1 | dvector with the first centroid | |
cov1 | dmatrix with the covariance matrix of distribution 1 | |
centroid2 | dvector with the second centroid | |
cov2 | dmatrix with the covariance matrix of distribution 2 | |
distance | the result will be left here |
bool lti::bhattacharyyaDistance::apply | ( | const dmatrix & | cluster1, | |
const dmatrix & | cluster2, | |||
double & | distance | |||
) | const |
compute the distance between the two distributions
cluster1 | dmatrix with the first distribution | |
cluster2 | dmatrix with the second one | |
distance | the result will be left here |
double lti::bhattacharyyaDistance::apply | ( | const dmatrix & | cluster1, | |
const dmatrix & | cluster2 | |||
) | const |
compute the distance between the two distributions
cluster1 | dmatrix with the first distribution | |
cluster2 | dmatrix with the second one |
virtual functor* lti::bhattacharyyaDistance::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
bhattacharyyaDistance& lti::bhattacharyyaDistance::copy | ( | const bhattacharyyaDistance & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::bhattacharyyaDistance::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
virtual const char* lti::bhattacharyyaDistance::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("bhattacharyyaDistance")
Reimplemented from lti::linearAlgebraFunctor.
bhattacharyyaDistance& lti::bhattacharyyaDistance::operator= | ( | const bhattacharyyaDistance & | other | ) |