#include <emix.h>


Public Member Functions | |
| emix (RV &rv) | |
| Default constructor. | |
| void | set_parameters (const vec &w, const Array< epdf * > &Coms) |
Set weights w and components R. | |
| vec | sample () const |
| Returns the required moment of the epdf. | |
| vec | mean () const |
| return expected value | |
| double | evalpdflog (const vec &val) const |
Compute log-probability of argument val. | |
| vec & | _w () |
| returns a pointer to the internal mean value. Use with Care! | |
| virtual mat | sampleN (int N) const |
Returns N samples from density . | |
| virtual double | eval (const vec &val) const |
Compute probability of argument val. | |
| RV & | _rv () |
| access function, possibly dangerous! | |
Protected Attributes | |
| vec | w |
| weights of the components | |
| Array< epdf * > | Coms |
| Component (epdfs). | |
| RV | rv |
| Identified of the random variable. | |
Density function:
where
is any density on random variable
, called component,
| vec emix::sample | ( | ) | const [virtual] |
1.5.6