mixpp: bdm::egamma Class Reference

bdm::egamma Class Reference

Gamma posterior density. More...

#include <exp_family.h>

Inheritance diagram for bdm::egamma:

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

Public Member Functions

vec sample () const
double evallog_nn (const vec &val) const
double lognc () const
vec & _alpha ()
 Returns pointer to internal alpha. Potentially dengerous: use with care!
vec & _beta ()
 Returns pointer to internal beta. Potentially dengerous: use with care!
vec mean () const
vec variance () const
void from_setting (const Setting &set)
void to_setting (Setting &set) const
void validate ()
Constructors
 egamma (const vec &a, const vec &b)
void set_parameters (const vec &a, const vec &b)

Protected Attributes

vec alpha
 Vector $\alpha$.
vec beta
 Vector $\beta$.

Detailed Description

Gamma posterior density.

Multivariate Gamma density as product of independent univariate densities.

\[ f(x|\alpha,\beta) = \prod f(x_i|\alpha_i,\beta_i) \]


Member Function Documentation

void bdm::egamma::from_setting ( const Setting &  set  )  [virtual]

Create object from the following structure

    class = 'egamma';
    alpha = [...];         % vector alpha
    beta = [...];          % vector beta
    --- inherited fields ---
    bdm::eEF::from_setting
fulfilling formula

\[ f(rv|rvc) = \Gamma(\alpha, \beta) \]

Reimplemented from bdm::epdf.


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