class RealDistance
Definition at line 20 of file RealDistance.h.

Public Member Functions | |
| CRealDistance () | |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual EFeatureType | get_feature_type () |
| virtual const char * | get_name (void) const |
| virtual void | cleanup ()=0 |
| virtual EDistanceType | get_distance_type ()=0 |
Protected Member Functions | |
| virtual float64_t | compute (int32_t x, int32_t y)=0 |
| CRealDistance | ( | ) |
default constructor
Definition at line 24 of file RealDistance.h.
| virtual void cleanup | ( | ) | [pure virtual] |
cleanup distance
abstract base method
Implements CSimpleDistance< float64_t >.
Implemented in CEuclidianDistance.
| virtual float64_t compute | ( | int32_t | x, | |
| int32_t | y | |||
| ) | [protected, pure virtual] |
compute distance function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
Implements CDistance.
Implemented in CEuclidianDistance.
| virtual EDistanceType get_distance_type | ( | ) | [pure virtual] |
get distance type we are
abstrace base method
Implements CSimpleDistance< float64_t >.
Implemented in CEuclidianDistance.
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
get feature type the distance can deal with
Reimplemented from CSimpleDistance< float64_t >.
Reimplemented in CEuclidianDistance.
Definition at line 46 of file RealDistance.h.
| virtual const char* get_name | ( | void | ) | const [virtual] |
Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.
Reimplemented from CSimpleDistance< float64_t >.
Reimplemented in CEuclidianDistance.
Definition at line 53 of file RealDistance.h.
init distance
| l | features of left-hand side | |
| r | features of right-hand side |
Reimplemented from CSimpleDistance< float64_t >.
Reimplemented in CEuclidianDistance.
Definition at line 32 of file RealDistance.h.