Public Member Functions | Protected Attributes | List of all members
o2scl::prob_dens_mdim_factor< vec_t > Class Template Reference

A multidimensional distribution formed by the product of several one-dimensional distributions. More...

#include <prob_dens_func.h>

Inheritance diagram for o2scl::prob_dens_mdim_factor< vec_t >:
o2scl::prob_dens_mdim< vec_t >

Public Member Functions

 prob_dens_mdim_factor (std::vector< prob_dens_func > &p_list)
virtual size_t dim () const
 Return the dimensionality.
virtual double pdf (const vec_t &x) const
 The normalized density.
virtual double log_pdf (const vec_t &x) const
 The log of the normalized density.
virtual void operator() (vec_t &x) const
 Sample the distribution.

Protected Attributes

std::vector< prob_dens_funclist
 Vector of one-dimensional distributions.

Detailed Description

template<class vec_t = boost::numeric::ublas::vector<double>>
class o2scl::prob_dens_mdim_factor< vec_t >

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