#include <libEF.h>
Public Member Functions | |
eEmp (const RV &rv0) | |
void | set_parameters (const vec &w0, epdf *pdf0) |
vec & | _w () |
Potentially dangerous, use with care. | |
Array< vec > & | _samples () |
ivec | resample (RESAMPLING_METHOD method=SYSTEMATIC) |
Function performs resampling, i.e. removal of low-weight samples and duplication of high-weight samples such that the new samples represent the same density. | |
vec | sample () |
Returns the required moment of the epdf. | |
vec | mean () |
return expected value | |
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 |
Number of particles. | |
vec | w |
Array< vec > | samples |
RV | rv |
Used e.g. in particle filters.
vec eEmp::sample | ( | ) | [inline, virtual] |