A weighted Student's T or Gaussian distribution used as a component in a Mixture.
More...
#include <Mixture.h>
A weighted Student's T or Gaussian distribution used as a component in a Mixture.
Definition at line 47 of file Mixture.h.
◆ MixtureComponent() [1/2]
lsst::meas::modelfit::MixtureComponent::MixtureComponent |
( |
int | dim | ) |
|
|
explicit |
Default-construct a mixture component with weight=1, mu=0, sigma=identity.
◆ MixtureComponent() [2/2]
lsst::meas::modelfit::MixtureComponent::MixtureComponent |
( |
Scalar | weight_, |
|
|
Vector const & | mu, |
|
|
Matrix const & | sigma ) |
Default-construct a mixture component with the given parameters.
◆ getDimension()
int lsst::meas::modelfit::MixtureComponent::getDimension |
( |
| ) |
const |
|
inline |
Return the number of dimensions.
Definition at line 51 of file Mixture.h.
◆ getMu()
Vector lsst::meas::modelfit::MixtureComponent::getMu |
( |
| ) |
const |
|
inline |
Get/set the location parameter (mean/median/mode) of this component.
Definition at line 58 of file Mixture.h.
◆ getSigma()
Matrix lsst::meas::modelfit::MixtureComponent::getSigma |
( |
| ) |
const |
|
inline |
Get/set the shape/size parameter.
For the Gaussian distribution, this is simply the covariance matrix. For the Student's T distribution with df > 2, covariance = sigma * df / (df - 2); for df <= 2, the Student's T distribution has infinite variance, but is still a valid distribution.
Definition at line 71 of file Mixture.h.
◆ operator=()
◆ project() [1/2]
MixtureComponent lsst::meas::modelfit::MixtureComponent::project |
( |
int | dim | ) |
const |
Project the distribution onto the given dimension (marginalize over all others)
◆ project() [2/2]
MixtureComponent lsst::meas::modelfit::MixtureComponent::project |
( |
int | dim1, |
|
|
int | dim2 ) const |
Project the distribution onto the given dimensions (marginalize over all others)
◆ setMu()
void lsst::meas::modelfit::MixtureComponent::setMu |
( |
Vector const & | mu | ) |
|
|
inline |
◆ setSigma()
void lsst::meas::modelfit::MixtureComponent::setSigma |
( |
Matrix const & | sigma | ) |
|
◆ Mixture
◆ operator<<
◆ weight
Scalar lsst::meas::modelfit::MixtureComponent::weight |
Weight of this distribution in the mixture.
Definition at line 54 of file Mixture.h.
The documentation for this class was generated from the following file: