class MinkowskiMetric
The Minkowski metric is one general class of metrics for a
feature space also referred as the
norm.
special cases:
norm: Manhattan distance
norm: Euclidean distance
Note that the Minkowski distance tends to the Chebyshew distance for increasing
.在文件MinkowskiMetric.h第40行定义。

公有成员 | |
| CMinkowskiMetric (float64_t k) | |
| CMinkowskiMetric (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, float64_t k) | |
| virtual | ~CMinkowskiMetric () |
| 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) |
保护属性 | |
| float64_t | k |
| CMinkowskiMetric | ( | float64_t | k | ) |
| CMinkowskiMetric | ( | CSimpleFeatures< float64_t > * | l, | |
| CSimpleFeatures< float64_t > * | r, | |||
| float64_t | k | |||
| ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side | |
| k | parameter k |
在文件MinkowskiMetric.cpp第25行定义。
| ~CMinkowskiMetric | ( | ) | [virtual] |
在文件MinkowskiMetric.cpp第32行定义。
| 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。
在文件MinkowskiMetric.cpp第48行定义。
| virtual EDistanceType get_distance_type | ( | ) | [virtual] |
| virtual const char* get_name | ( | ) | const [virtual] |
constructor
| l | features of left-hand side | |
| r | features of right-hand side |
重载CSimpleDistance< float64_t >。
在文件MinkowskiMetric.cpp第37行定义。
parameter k
在文件MinkowskiMetric.h第88行定义。