mixpp: bdm::eBeta Class Reference

bdm::eBeta Class Reference

Product of Beta distributions. More...

#include <exp_family.h>

Inheritance diagram for bdm::eBeta:

bdm::eEF bdm::epdf bdm::pdf bdm::root List of all members.

Public Member Functions

vec sample () const
 using sampling procedure from wikipedia
vec mean () const
vec variance () const
double evallog_nn (const vec &val) const
 In this instance, val is ...
double lognc () const
void from_setting (const Setting &set)
void validate ()
void to_setting (Setting &set) const
Constructors
 eBeta (const eBeta &B0)

Public Attributes

vec alpha
 sufficient statistics
vec beta
 sufficient statistics

Detailed Description

Product of Beta distributions.

Continuous Dirichlet density of $n$-dimensional variable $x$

\[ f(x|\alpha,\beta) = \frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}\, x^{\alpha-1}(1-x)^{\beta-1} \]

is a simplification of Dirichlet to univariate case.


Member Function Documentation

void bdm::eBeta::from_setting ( const Setting &  set  )  [inline, virtual]

Create object from the following structure

    class = 'eBeta';
    alpha = [...];           % vector parameter alpha
    beta  = [...];           % vector parameter beta of the same length as alpha

Class does not call bdm::eEF::from_setting

Reimplemented from bdm::epdf.


The documentation for this class was generated from the following file:
Generated on 2 Dec 2013 for mixpp by  doxygen 1.4.7