#include <GaussianMixture.h>
Public Member Functions | |
bool | normalized () |
Gets if the pdf is normalized. | |
void | normalize () |
Normalizes the pdf. | |
GaussianMixtureJointId () | |
Default constructor. | |
GaussianMixtureJointId (stringstream &ss) | |
Stringstream constructor. | |
GaussianMixtureJointId (string &s) | |
String constructor. | |
DCol | expectedValue () |
Returns the expected value. | |
Decimal | covariance (int row, int col) |
Returns the (row-th, col-th) element of the covariance matrix. | |
Decimal | evaluate (DCol p) |
Returns the the value of the pdf in the given position. | |
string | print () |
Prints all interesting data on a string. | |
string | exportAsString () |
Produces a string formatted for communication or constructor. |
Provides a class to represent the generic 2D GaussianMixture pdf, each component associated to none, one or more ids.
MipBaselib::GaussianMixtureJointId::GaussianMixtureJointId | ( | ) |
Default constructor.
MipBaselib::GaussianMixtureJointId::GaussianMixtureJointId | ( | stringstream & | ss | ) |
Stringstream constructor.
[in] | & | this string contains all the information to build a GaussianMixtureJointId. It can be the output of the method exportAsString. |
MipBaselib::GaussianMixtureJointId::GaussianMixtureJointId | ( | string & | s | ) |
String constructor.
[in] | & | this string contains all the information to build a GaussianMixtureJointId. It can be the output of the method exportAsString. |
bool MipBaselib::GaussianMixtureJointId::normalized | ( | ) |
Gets if the pdf is normalized.
void MipBaselib::GaussianMixtureJointId::normalize | ( | ) |
Normalizes the pdf.
For the sake of simplicity and to avoid useless computations, the normalization of the pdf is left to the user. Always normalize the pdf before retreiving data from this pdf.
DCol MipBaselib::GaussianMixtureJointId::expectedValue | ( | ) |
Returns the expected value.
Decimal MipBaselib::GaussianMixtureJointId::covariance | ( | int | row, | |
int | col | |||
) |
Returns the (row-th, col-th) element of the covariance matrix.
[in] | row | Requested row. |
[in] | col | Requested column. |
Returns the the value of the pdf in the given position.
[in] | col | Requested position. |
string MipBaselib::GaussianMixtureJointId::print | ( | ) |
Prints all interesting data on a string.
string MipBaselib::GaussianMixtureJointId::exportAsString | ( | ) |
Produces a string formatted for communication or constructor.