BIE::InitialMixturePrior Class Reference
Prior for mixture model.
More...
#include <InitialMixturePrior.h>
List of all members.
|
Public Member Functions |
|
virtual void | SamplePrior (int &M, vector< double > &wght, vector< vector< double > > &phi) |
| | Sample: return weights and components separately.
|
| virtual void | SamplePrior (int M, int n, vector< double > &V) |
| | Sample: return a single component.
|
|
|
| InitialMixturePrior () |
| | For cloning only: makes an uninitialized prior.
|
| | InitialMixturePrior (int nmix, double alpha, string pfile) |
| | The useful constructor.
|
| | InitialMixturePrior (int nmix, double alpha, double pmean, string prior) |
| | The useful constructor.
|
|
The packing order in vectors is: Nmix weights, followed by Nmix vectors of Ndim elements
|
|
virtual InitialMixturePrior * | New () |
| | Object factor (clone).
|
|
virtual double | PDF (State &) |
| | Differential distribution function P(x).
|
|
virtual double | logPDF (State &) |
| | Log of differential distribution function P(x).
|
| virtual double | logPDFMarginal (int M, int n, vector< double > &V) |
| | Log of differential distribution function in subspace.
|
| virtual vector< double > | lower (void) |
| | Differential distribution function for single component.
|
|
virtual vector< double > | upper (void) |
| | Upper bound on distribution.
|
|
virtual vector< double > | Mean (int m) |
| | Return mean of distribution.
|
|
virtual vector< double > | StdDev (int m) |
| | Return standard deviation of distribution.
|
|
virtual vector< double > | Moments (int m, int n) |
| | Return specifided moment of distribution.
|
|
virtual vector< double > | Sample (int m) |
| | Return random variate from distribution.
|
Protected Attributes |
|
State | ttwght |
| | Temporary state vector.
|
Friends |
|
class | boost::serialization::access |
Detailed Description
Prior for mixture model.
Constructor & Destructor Documentation
| BIE::InitialMixturePrior::InitialMixturePrior |
( |
int |
nmix, |
|
|
double |
alpha, |
|
|
string |
pfile | |
|
) |
| | |
The useful constructor.
- Parameters:
-
| nmix | is the number of compoments |
| alpha | is the Dirichlet parameter |
| pfile | is the file defining the prior distributions for each each dimension of the parameter vector |
| BIE::InitialMixturePrior::InitialMixturePrior |
( |
int |
nmix, |
|
|
double |
alpha, |
|
|
double |
pmean, |
|
|
string |
prior | |
|
) |
| | |
The useful constructor.
- Parameters:
-
| nmix | is the number of compoments |
| alpha | is the Dirichlet parameter |
| pmean | is the Poisson prior mean for the number of components |
| pfile | is the file defining the prior distributions for each each dimension of the parameter vector |
Member Function Documentation
| virtual double BIE::InitialMixturePrior::logPDFMarginal |
( |
int |
M, |
|
|
int |
n, |
|
|
vector< double > & |
V | |
|
) |
| | [virtual] |
Log of differential distribution function in subspace.
- Parameters:
-
| M,component | |
| n,and | parameter vector |
| V | |
Implements BIE::MixturePrior.
| virtual vector<double> BIE::InitialMixturePrior::lower |
( |
void |
|
) |
[virtual] |
Differential distribution function for single component.
Lower bound on distribution
Implements BIE::MixturePrior.
| virtual void BIE::InitialMixturePrior::SamplePrior |
( |
int |
M, |
|
|
int |
n, |
|
|
vector< double > & |
V | |
|
) |
| | [virtual] |
Sample: return a single component.
- Parameters:
-
| V | for subspace |
| M | and comonent |
| n | |
Implements BIE::MixturePrior.
The documentation for this class was generated from the following file: