class Covariance

Abstract covariance class More...

Contains pure virtuals
Definition#include <HMM/include/covariance.h>
InheritsObject (data-flow)
Inherited byDiagonalCovariance
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Protected Types

Protected Members


Detailed Description

Abstract covariance class

enum Mode {accum, real, rotated, inverted}

[protected]

int dimension

[protected]

Size of the covariance matrix

mutable double determinant

[protected]

Log of the determinant

mutable bool determinant_is_valid

[protected]

Whether or not the determinant has been computed

int mode

[protected]

Mode

int accum_count

[protected]

Number of frames accumulated

 Covariance (int dim) : dimension(dim) , determinant(-10000) , determinant_is_valid(false), mode(accum)

Create a Covariance with dim dimensions

 Covariance (const Covariance &cov) : dimension(cov.dimension) , determinant(0) , determinant_is_valid(false) , mode (cov.mode) , accum_count(0)

Copy constructor

Covariance ()

[virtual]

Virtual Destructor

void  accumFrame (const float *v)

[pure virtual]

accumulates a frame to the covariance

void  accumFrame (const vector<float> &v)

[pure virtual]

accumulates a frame to the covariance

unsigned int  size ()

[const]

Returns the covariance size (dimension)

double  getDeterminant ()

[const]

Returns (and compute if necessary) the covariance log determinant

void  compute_determinant ()

[const pure virtual]

Computes the determinant

void  printOn (ostream &out=cout)

[const pure virtual]

Prints the covariance

Reimplemented from Object.

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

[const pure virtual]

Computed the mahalanobis distance between the vectors using the covariance

double&  operator[] (int )

[pure virtual]

Virtual indexing operator 1D (for diagonal covariance)

double&  operator() (int,int)

[pure virtual]

Virtual indexing operator 2D

void  reset ()

[pure virtual]

Resets accumulation to zero

Covariance *  copy ()

[pure virtual]

Returns a copy of the covariance

void  invert ()

[pure virtual]

Converts from accumulate mode to real

void  processMean (RCPtr<Mean> mean)

[pure virtual]

Substract mean^2, before the covariance can be inverted

friend class GMM


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