w2img::GaussianMixtureModel::GaussianComponent Class Reference

Inheritance diagram for w2img::GaussianMixtureModel::GaussianComponent:

w2img::GMMFilter::GMM List of all members.

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


std::ostream & operator<< (std::ostream &os, const GaussianComponent &obj)

Constructor & Destructor Documentation

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).

Member Function Documentation

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]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const GaussianComponent obj 
) [friend]

Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7