Probability density function based on a histogram. More...
#include <prob_dens_func.h>
Definition at line 606 of file prob_dens_func.h.
Public Types | |
typedef boost::numeric::ublas::vector< double > | ubvector |
Public Member Functions | |
void | init (hist &h) |
Initialize with histogram h . | |
const ubvector & | partial_sums () |
Get reference to partial sums. | |
const ubvector & | bin_ranges () |
Get reference to bin ranges. | |
virtual double | operator() () const |
Generate a sample. | |
virtual double | lower_limit () const |
Lower limit of the range. | |
virtual double | upper_limit () const |
Uower limit of the range. | |
virtual double | pdf (double x) const |
The normalized density. | |
virtual double | log_pdf (double x) const |
The log of the normalized density. | |
virtual double | cdf (double x) const |
Cumulative distribution function (from the lower tail) | |
virtual double | invert_cdf (double x) const |
Inverse cumulative distribution function (from the lower tail) | |
virtual double | entropy () const |
Entropy of the distribution ( ![]() | |
Protected Attributes | |
search_vec< ubvector > | sv |
Search through the partial sums. | |
size_t | n |
Number of original histogram bins. | |
ubvector | sum |
Normalized partial sum of histogram bins. More... | |
ubvector | range |
Vector specifying original histogram bins. More... | |
rng_gsl | rng |
Random number generator. | |
|
protected |
This vector has size n plus one.
Definition at line 630 of file prob_dens_func.h.
|
protected |
This vector has size n plus one.
Definition at line 624 of file prob_dens_func.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).