MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Static Public Member Functions
mds::img::CGStat< R, V > Class Template Reference

The G-Statistics distance measure. More...

#include <mdsDistanceMeasure.h>

Inheritance diagram for mds::img::CGStat< R, V >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { FEATURE_VECTOR_MUST_BE_GIVEN = V::CLASS_FEATURE_VECTOR }
 Check that V is a feature vector type. More...
typedef CDistanceMeasure< V > tBase
typedef tBase::tFeatureVector tFeatureVector
 Feature vector type.

Static Public Member Functions

static double calculate (const tFeatureVector &v1, const tFeatureVector &v2)
 Calculates distance between two given feature vectors.

Detailed Description

template<typename R, class V>
class mds::img::CGStat< R, V >

The G-Statistics distance measure.


Member Typedef Documentation

template<typename R , class V >
typedef CDistanceMeasure<V> mds::img::CGStat< R, V >::tBase
template<typename R , class V >
typedef tBase::tFeatureVector mds::img::CGStat< R, V >::tFeatureVector

Feature vector type.

Reimplemented from mds::img::CDistanceMeasure< V >.


Member Enumeration Documentation

template<class V >
anonymous enum [inherited]

Check that V is a feature vector type.

You will see name of this enum somewhere in compiler error message if the type V can't be used.

Enumerator:
FEATURE_VECTOR_MUST_BE_GIVEN 

Member Function Documentation

template<typename R , class V >
static double mds::img::CGStat< R, V >::calculate ( const tFeatureVector v1,
const tFeatureVector v2 
) [static]

Calculates distance between two given feature vectors.

  • Features must be normalized into the range <0,1>!

The documentation for this class was generated from the following file: