All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes
o2scl::prob_dens_hist Class Reference

Probability density function based on a histogram. More...

Detailed Description

This class is experimental.

Definition at line 548 of file prob_dens_func.h.

#include <prob_dens_func.h>

Inheritance diagram for o2scl::prob_dens_hist:
o2scl::prob_dens_frange o2scl::prob_dens_func

Public Types

typedef
boost::numeric::ublas::vector
< double > 
ubvector
 

Public Member Functions

void init (hist &h)
 Initialize with histogram h.
 
virtual double sample () 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 operator() (double x) const
 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
 Inverse cumulative distribution function (from the lower tail)
 

Protected Attributes

search_vec< ubvectorsv
 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.
 

Field Documentation

ubvector o2scl::prob_dens_hist::range
protected

This vector has size n plus one.

Definition at line 572 of file prob_dens_func.h.

ubvector o2scl::prob_dens_hist::sum
protected

This vector has size n plus one.

Definition at line 566 of file prob_dens_func.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).
Hosted at Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads..