SHOGUN v0.9.0
|
class ChiSquareDistance
This implementation of distance extends the concept of
metric to negative values.
在文件ChiSquareDistance.h第33行定义。
公有成员 | |
CChiSquareDistance () | |
CChiSquareDistance (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r) | |
virtual | ~CChiSquareDistance () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EDistanceType | get_distance_type () |
virtual const char * | get_name () const |
保护成员 | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
default constructor
在文件ChiSquareDistance.cpp第20行定义。
CChiSquareDistance | ( | CSimpleFeatures< float64_t > * | l, |
CSimpleFeatures< float64_t > * | r | ||
) |
constructor
l | features of left-hand side |
r | features of right-hand side |
在文件ChiSquareDistance.cpp第24行定义。
~CChiSquareDistance | ( | ) | [virtual] |
在文件ChiSquareDistance.cpp第30行定义。
void cleanup | ( | ) | [virtual] |
float64_t compute | ( | int32_t | idx_a, |
int32_t | idx_b | ||
) | [protected, virtual] |
compute distance for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
实现了CDistance。
在文件ChiSquareDistance.cpp第46行定义。
virtual EDistanceType get_distance_type | ( | ) | [virtual] |
get distance type we are
实现了CSimpleDistance< float64_t >。
在文件ChiSquareDistance.h第62行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
get name of the distance
重载CSimpleDistance< float64_t >。
在文件ChiSquareDistance.h第68行定义。
init distance
l | features of left-hand side |
r | features of right-hand side |
重载CSimpleDistance< float64_t >。
在文件ChiSquareDistance.cpp第35行定义。