|
lsst.meas.modelfit g9a9c865167+ee76a57405
|
A weighted Student's T or Gaussian distribution used as a component in a Mixture. More...
#include <Mixture.h>
Public Member Functions | |
| int | getDimension () const |
| Return the number of dimensions. | |
| Vector | getMu () const |
| Get/set the location parameter (mean/median/mode) of this component. | |
| void | setMu (Vector const &mu) |
| Matrix | getSigma () const |
| Get/set the shape/size parameter. | |
| void | setSigma (Matrix const &sigma) |
| MixtureComponent | project (int dim) const |
| Project the distribution onto the given dimension (marginalize over all others). | |
| MixtureComponent | project (int dim1, int dim2) const |
| Project the distribution onto the given dimensions (marginalize over all others). | |
| MixtureComponent (int dim) | |
| Default-construct a mixture component with weight=1, mu=0, sigma=identity. | |
| MixtureComponent (Scalar weight_, Vector const &mu, Matrix const &sigma) | |
| Default-construct a mixture component with the given parameters. | |
| MixtureComponent & | operator= (MixtureComponent const &other) |
Public Attributes | |
| Scalar | weight |
| Weight of this distribution in the mixture. | |
Friends | |
| class | Mixture |
| std::ostream & | operator<< (std::ostream &os, MixtureComponent const &self) |
A weighted Student's T or Gaussian distribution used as a component in a Mixture.
|
explicit |
Default-construct a mixture component with weight=1, mu=0, sigma=identity.
| lsst::meas::modelfit::MixtureComponent::MixtureComponent | ( | Scalar | weight_, |
| Vector const & | mu, | ||
| Matrix const & | sigma ) |
Default-construct a mixture component with the given parameters.
|
inline |
|
inline |
|
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.
| MixtureComponent & lsst::meas::modelfit::MixtureComponent::operator= | ( | MixtureComponent const & | other | ) |
| MixtureComponent lsst::meas::modelfit::MixtureComponent::project | ( | int | dim | ) | const |
Project the distribution onto the given dimension (marginalize over all others).
| MixtureComponent lsst::meas::modelfit::MixtureComponent::project | ( | int | dim1, |
| int | dim2 ) const |
Project the distribution onto the given dimensions (marginalize over all others).
|
inline |
| void lsst::meas::modelfit::MixtureComponent::setSigma | ( | Matrix const & | sigma | ) |
|
friend |
| Scalar lsst::meas::modelfit::MixtureComponent::weight |