class Gaussian
|
Gaussian class More... |
|
|
Public Methods
- Gaussian () : dimension(0) , using_meanID(false) , using_covarianceID(false)
- 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)
- 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)
- ~ Gaussian ()
- int getDimension () const
- Mean & getMean () const
- Covariance & getCovariance () const
- void to_real ()
- int get_accum_count () const
- double mahalanobis (const float * fr) const
- double mahalanobis (const float * fr, Covariance *cov) const
- double euclidian (const float * fr) const
- void accum_frame (const float * fr)
- void reset_to_accum_mode ()
- void toIDsUsing (MeanSet &means, CovarianceSet & covariances)
- void toPtrsUsing (const MeanSet &means, const CovarianceSet & covariances)
- void printOn (ostream &out = cout) const
- void readFrom (istream &in=cin)
- friend istream & operator >> (istream &in, Gaussian &gauss)
Public Members
Protected Members
Detailed Description
Gaussian class
[protected]
The mean of the gaussian stored as an STL vector of float
[protected]
The covariance of the gaussian is a pointer to abstract class Covariance
[protected]
number of frames aligned (accumulated) to the covariance
[protected]
Dimension (same as the mean and covariance dimension)
[protected]
Was the gaussian loaded using indexes for mean
[protected]
Was the gaussian loaded using indexes for covariance
[protected]
The ID of the gaussian's mean
[protected]
The ID of the gaussian's covariance
Gaussian () : dimension(0) , using_meanID(false) , using_covarianceID(false)
|
Empty gaussian constructor
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
Destructor
[const]
Returns the dimension of the gaussian
[const]
Returns the mean of the gaussian
[const]
Returns the covariance of the gaussian
Convert from accumulate to real mode
[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 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)
|
Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:40 2002, using kdoc 2.0a40. |