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

The Chi-Square distance measure. More...

#include <mdsDistanceMeasure.h>

Inheritance diagram for mds::img::CChiSquare< 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 similarity between two given feature vectors.

Detailed Description

template<class V>
class mds::img::CChiSquare< V >

The Chi-Square distance measure.


Member Typedef Documentation

template<class V >
typedef CDistanceMeasure<V> mds::img::CChiSquare< V >::tBase
template<class V >
typedef tBase::tFeatureVector mds::img::CChiSquare< 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<class V >
static double mds::img::CChiSquare< V >::calculate ( const tFeatureVector v1,
const tFeatureVector v2 
) [static]

Calculates similarity between two given feature vectors.


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