mixpp: bdm::multiBM Class Reference

bdm::multiBM Class Reference

Estimator for Multinomial density. More...

#include <exp_family.h>

Inheritance diagram for bdm::multiBM:

bdm::BMEF bdm::BM bdm::root List of all members.

Public Member Functions

 multiBM ()
 Default constructor.
 multiBM (const multiBM &B)
 Copy constructor.
void set_statistics (const BM *mB0)
 Sets sufficient statistics to match that of givefrom mB0.
void bayes (const vec &yt, const vec &cond=empty_vec)
double logpred (const vec &yt) const
void flatten (const BMEF *B, double weight)
const eDirichposterior () const
 return correctly typed posterior (covariant return)
void set_parameters (const vec &beta0)
 constructor function
void to_setting (Setting &set) const
void from_setting (const Setting &set)

Protected Attributes

eDirich est
 Conjugate prior and posterior.
vec & beta
 Pointer inside est to sufficient statistics.

Detailed Description

Estimator for Multinomial density.


Member Function Documentation

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

Create object from the following structure

    class = 'MultiBM';
    prior = configuration of bdm::eDirich;       % any offspring of eDirich, bdm::eDirich::from_setting
    --- inherited fields ---
    bdm::BMEF::from_setting

Reimplemented from bdm::BMEF.


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