emix Class Reference

Weighted mixture of epdfs with external owned components. More...

#include <libEF.h>

Inheritance diagram for emix:

Inheritance graph
[legend]
Collaboration diagram for emix:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 emix (const RV &rv, vec &w0)
 Default constructor.
void set_parameters (int &i, epdf *ep)
vec mean ()
 return expected value
vec sample ()
 Returns the required moment of the epdf.
virtual double eval (const vec &val)
 Compute probability of argument val.
virtual double evalpdflog (const vec &val)
 Compute log-probability of argument val.

Protected Attributes

int n
vec & w
Array< epdf * > Coms
RV rv


Detailed Description

Weighted mixture of epdfs with external owned components.

Member Function Documentation

vec emix::sample (  )  [inline, virtual]

Returns the required moment of the epdf.

Returns a sample from the density, $x \sim epdf(rv)$

Implements epdf.


The documentation for this class was generated from the following file:
Generated on Thu Feb 28 16:54:48 2008 for mixpp by  doxygen 1.5.3