Inheritance diagram for w2img::GaussianMixtureModel::GaussianComponent:
Public Member Functions | |
GaussianComponent () | |
GaussianComponent (double cx, double cy, double varx, double vary, double sigmaxy=0, double inwt=1) | |
Initialize with known values. | |
double | getWeight () const |
double | getCx () const |
double | getCy () const |
double | getSigmax () const |
double | getSigmay () const |
double | getSigmaxy () const |
GaussianComponent (const float *x, const float *y, const float *wt, int n_pts) | |
Finds best fit (the M-step in E-M). | |
double | computeProbabilityDensityAt (double x, double y) const |
Value of Normal function at x,y given these parameters. | |
bool | isValid () const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GaussianComponent &obj) |
w2img::GaussianMixtureModel::GaussianComponent::GaussianComponent | ( | ) | [inline] |
w2img::GaussianMixtureModel::GaussianComponent::GaussianComponent | ( | double | cx, | |
double | cy, | |||
double | varx, | |||
double | vary, | |||
double | sigmaxy = 0 , |
|||
double | inwt = 1 | |||
) | [inline] |
Initialize with known values.
w2img::GaussianMixtureModel::GaussianComponent::GaussianComponent | ( | const float * | x, | |
const float * | y, | |||
const float * | wt, | |||
int | n_pts | |||
) |
Finds best fit (the M-step in E-M).
double w2img::GaussianMixtureModel::GaussianComponent::computeProbabilityDensityAt | ( | double | x, | |
double | y | |||
) | const |
Value of Normal function at x,y given these parameters.
You typically want to weight this contribution by getWeight() This goes into the E-step in E-M.
double w2img::GaussianMixtureModel::GaussianComponent::getCx | ( | ) | const [inline] |
double w2img::GaussianMixtureModel::GaussianComponent::getCy | ( | ) | const [inline] |
double w2img::GaussianMixtureModel::GaussianComponent::getSigmax | ( | ) | const [inline] |
double w2img::GaussianMixtureModel::GaussianComponent::getSigmaxy | ( | ) | const [inline] |
double w2img::GaussianMixtureModel::GaussianComponent::getSigmay | ( | ) | const [inline] |
double w2img::GaussianMixtureModel::GaussianComponent::getWeight | ( | ) | const [inline] |
bool w2img::GaussianMixtureModel::GaussianComponent::isValid | ( | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const GaussianComponent & | obj | |||
) | [friend] |