class ManhattanMetric
The Manhattan distance (city block distance,
norm, rectilinear distance or taxi cab metric ) is a special case of general Minkowski metric and computes the absolute differences between the feature dimensions of two data points.
在文件ManhattanMetric.h第36行定义。

公有成员 | |
| CManhattanMetric () | |
| CManhattanMetric (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r) | |
| virtual | ~CManhattanMetric () |
| 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) |
| CManhattanMetric | ( | ) |
default constructor
在文件ManhattanMetric.cpp第20行定义。
| CManhattanMetric | ( | CSimpleFeatures< float64_t > * | l, | |
| CSimpleFeatures< float64_t > * | r | |||
| ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side |
在文件ManhattanMetric.cpp第25行定义。
| ~CManhattanMetric | ( | ) | [virtual] |
在文件ManhattanMetric.cpp第31行定义。
| 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。
在文件ManhattanMetric.cpp第47行定义。
| virtual EDistanceType get_distance_type | ( | ) | [virtual] |
| virtual const char* get_name | ( | ) | const [virtual] |
init distance
| l | features of left-hand side | |
| r | features of right-hand side |
重载CSimpleDistance< float64_t >。
在文件ManhattanMetric.cpp第36行定义。