Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::NormalizedCorrelation Class Reference

#include <descriptor.h>

Inheritance diagram for fl::NormalizedCorrelation:

fl::Comparison List of all members.

Public Methods

 NormalizedCorrelation (bool subtractMean=true)
 NormalizedCorrelation (std::istream &stream)
virtual Vector< float > preprocess (const Vector< float > &value) const
virtual float value (const Vector< float > &value1, const Vector< float > &value2, bool preprocessed=false) const
virtual void read (std::istream &stream)
virtual void write (std::ostream &stream, bool withName=true)

Public Attributes

bool subtractMean
 Indicates that during normalization, subtract the mean of the elements in the vector.


Detailed Description

Uses the correlation value, in range [-1,1], after normalizing each vector. Returns positive correlations directly, and clips negative correlations to zero probability. Normalization process is 1) subtract mean of elements in vector, and 2) scale vector to unit norm.

May add other modes. Two possibilities are: Affinely map [-1,1] onto [0,1]. Let probability = absolute value of correlation


Constructor & Destructor Documentation

NormalizedCorrelation::NormalizedCorrelation bool    subtractMean = true
 

NormalizedCorrelation::NormalizedCorrelation std::istream &    stream
 


Member Function Documentation

Vector< float > NormalizedCorrelation::preprocess const Vector< float > &    value const [virtual]
 

Reimplemented from fl::Comparison.

void NormalizedCorrelation::read std::istream &    stream [virtual]
 

Reimplemented from fl::Comparison.

float NormalizedCorrelation::value const Vector< float > &    value1,
const Vector< float > &    value2,
bool    preprocessed = false
const [virtual]
 

Implements fl::Comparison.

void NormalizedCorrelation::write std::ostream &    stream,
bool    withName = true
[virtual]
 

Reimplemented from fl::Comparison.


Member Data Documentation

bool fl::NormalizedCorrelation::subtractMean
 

Indicates that during normalization, subtract the mean of the elements in the vector.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18