class DiagonalCovariance

Diagonal Covariance class More...

Definition#include <HMM/include/covariance.h>
InheritsCovariance
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

Diagonal Covariance class

 DiagonalCovariance (istream &in) : Covariance(0)

 DiagonalCovariance () : Covariance(0) , data(vector<double>(0,0.0))

 DiagonalCovariance (int dim) : Covariance(dim) , data(vector<double>(dim,0.0))

Constructs a Diagonal Covariance with dimension dim

 DiagonalCovariance (const DiagonalCovariance &cov) : Covariance(cov) , data(cov.data)

Copy Constructor

double  mahalanobisDistance (const float *x1, const double *x2)

[const]

returns the mahalanobis distance between x1 and x2 using the covariance

Reimplemented from Covariance.

double&  operator[] (int i)

virtual, should not be used

Reimplemented from Covariance.

double&  operator() (int i)

virtual, should not be used

Reimplemented from Covariance.

double&  operator() (int i,int)

virtual, should not be used

Reimplemented from Covariance.

void  compute_determinant ()

[const]

Computes the determinant

Reimplemented from Covariance.

void  accumFrame (const float *v)

accumulates a frame to the covariance

Reimplemented from Covariance.

void  accumFrame (const vector<float> &v)

accumulates a frame to the covariance

Reimplemented from Covariance.

void  reset ()

Reset accumulation to zero

Reimplemented from Covariance.

Covariancecopy ()

Returns a copy of the covariance

Reimplemented from Covariance.

void  invert ()

Converts from accumulate mode to real

Reimplemented from Covariance.

void  processMean (RCPtr<Mean> mean)

Substract mean^2, before the covariance can be inverted

Reimplemented from Covariance.

void  printOn (ostream &out=cout)

[const virtual]

print function used for operator <<

Reimplemented from Covariance.

void  readFrom (istream &in=cin)

Read function used for operator >>

Reimplemented from Object.

friend istream & operator >> (istream &in, DiagonalCovariance &cov)

extractor operator

friend class GMM

inline CovarianceNewDiagonalCovariance (int dim)

Function that acts as a factory for diagonal covariance

istream & operator >> (istream &in, DiagonalCovariance &cov)


Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:40 2002, using kdoc 2.0a40.