class Gaussian

Gaussian class More...

Definition#include <HMM/include/gaussian.h>
InheritsObject (data-flow)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Protected Members


Detailed Description

Gaussian class

RCPtr<Mean> mean

[protected]

The mean of the gaussian stored as an STL vector of float

RCPtr<Covariance> covariance

[protected]

The covariance of the gaussian is a pointer to abstract class Covariance

int accum_count

[protected]

number of frames aligned (accumulated) to the covariance

int dimension

[protected]

Dimension (same as the mean and covariance dimension)

bool using_meanID

[protected]

Was the gaussian loaded using indexes for mean

bool using_covarianceID

[protected]

Was the gaussian loaded using indexes for covariance

int meanID

[protected]

The ID of the gaussian's mean

int covarianceID

[protected]

The ID of the gaussian's covariance

 Gaussian () : dimension(0) , using_meanID(false) , using_covarianceID(false)

Empty gaussian constructor

 Gaussian (istream &in)

 Gaussian (int dim, Covariance *(*cov_new)(int)) : mean(new Mean (dim,0.0)) , covariance(cov_new (dim)) , accum_count(0) , dimension(dim) , using_meanID(false) , using_covarianceID(false)

Construct a Gaussian with dimension dim and a covariance pseudo-factory (allows to create gaussians with either diagonal or full covariance

 Gaussian (int dim, int _meanID, int _covarianceID) : accum_count(0) , dimension(dim) , using_meanID(true) , using_covarianceID(true) , meanID(_meanID) , covarianceID(_covarianceID)

 Gaussian (const Gaussian &g) : mean(new Mean (*g.mean)) , covariance(g.covariance->copy()) , accum_count (g.accum_count) , dimension (g.dimension) , using_meanID(false) , using_covarianceID(false)

Copy constructor

Gaussian ()

Destructor

int  getDimension ()

[const]

Returns the dimension of the gaussian

MeangetMean ()

[const]

Returns the mean of the gaussian

CovariancegetCovariance ()

[const]

Returns the covariance of the gaussian

void  to_real ()

Convert from accumulate to real mode

int  get_accum_count ()

[const]

Returns the number of frames aligned to the gaussian

double  mahalanobis (const float * fr)

[const]

Returns the mahalanobis distance between the gaussian and a frame

double  mahalanobis (const float * fr, Covariance *cov)

[const]

Returns the mahalanobis distance between the gaussian and a frame

double  euclidian (const float * fr)

[const]

Returns the euclidian distance between the gaussian and a frame

void  accum_frame (const float * fr)

Adds (accumulates) a frame to the gaussian

void  reset_to_accum_mode ()

Set everything to zero and come back to accumulate mode

void  toIDsUsing (MeanSet &means, CovarianceSet & covariances)

void  toPtrsUsing (const MeanSet &means, const CovarianceSet & covariances)

void  printOn (ostream &out = cout)

[const]

print function for operator <<

Reimplemented from Object.

void  readFrom (istream &in=cin)

Read function used for operator >>

Reimplemented from Object.

friend istream & operator >> (istream &in, Gaussian &gauss)

friend class GMM


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