Public Member Functions | List of all members
o2scl::prob_dens_func Class Reference

A one-dimensional probability density function. More...

#include <prob_dens_func.h>

Inheritance diagram for o2scl::prob_dens_func:
o2scl::prob_dens_frange o2scl::prob_dens_gaussian o2scl::prob_dens_positive o2scl::prob_dens_hist o2scl::prob_dens_uniform o2scl::prob_dens_lognormal

Public Member Functions

virtual double operator() () const
 Sample from the specified density.
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
 The cumulative distribution function (from the lower tail)
virtual double invert_cdf (double cdf) const
 The inverse cumulative distribution function.
virtual double entropy () const
 Entropy of the distribution ( $ - \int f \ln f $ )

Detailed Description

This class is experimental.

Idea for Future:
Give functions for mean, median, mode, variance, etc?

Definition at line 59 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).