#include <gaussian.h>
Inheritance diagram for FD::Gaussian:
Public Member Functions | |
Gaussian () | |
Gaussian (std::istream &in) | |
Gaussian (int dim, Covariance *(*cov_new)(int)) | |
Gaussian (int dim, int _meanID, int _covarianceID) | |
Gaussian (const Gaussian &g) | |
~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 (std::ostream &out=std::cout) const |
void | readFrom (std::istream &in=std::cin) |
Protected Attributes | |
RCPtr< Mean > | mean |
RCPtr< Covariance > | covariance |
int | accum_count |
int | dimension |
bool | using_meanID |
bool | using_covarianceID |
int | meanID |
int | covarianceID |
Friends | |
class | GMM |
std::istream & | operator>> (std::istream &in, Gaussian &gauss) |
|
Empty gaussian constructor |
|
Construct a Gaussian with dimension dim and a covariance pseudo-factory (allows to create gaussians with either diagonal or full covariance |
|
Copy constructor |
|
Destructor |
|
Adds (accumulates) a frame to the gaussian |
|
Returns the euclidian distance between the gaussian and a frame |
|
Returns the number of frames aligned to the gaussian |
|
Returns the covariance of the gaussian |
|
Returns the dimension of the gaussian |
|
Returns the mean of the gaussian |
|
Returns the mahalanobis distance between the gaussian and a frame |
|
Returns the mahalanobis distance between the gaussian and a frame |
|
print function for operator << Implements FD::Object. |
|
Read function used for operator >> Reimplemented from FD::Object. |
|
Set everything to zero and come back to accumulate mode |
|
Convert from accumulate to real mode |
|
number of frames aligned (accumulated) to the covariance |
|
The covariance of the gaussian is a pointer to abstract class Covariance |
|
The ID of the gaussian's covariance |
|
Dimension (same as the mean and covariance dimension) |
|
The mean of the gaussian stored as an STL vector of float |
|
The ID of the gaussian's mean |
|
Was the gaussian loaded using indexes for covariance |
|
Was the gaussian loaded using indexes for mean |