bdm::mDirich Class Reference
Random Walk on Dirichlet. More...
#include <exp_family.h>
Inheritance diagram for bdm::mDirich:
Public Member Functions | |
void | condition (const vec &val) |
void | from_setting (const Setting &set) |
void | to_setting (Setting &set) const |
void | validate () |
Protected Attributes | |
double | k |
constant of the random walk | |
vec & | _beta |
cache of beta_i | |
vec | betac |
stabilizing coefficient |
Detailed Description
Random Walk on Dirichlet.Using simple assignment
hence, mean value = rvc, variance = (k+1)*mean*mean;
The greater k is, the greater is the variance of the random walk;
is used as regularizing element to avoid corner cases, i.e. when one element of rvc is zero. By default is it set to 0.1;
Member Function Documentation
void bdm::mDirich::from_setting | ( | const Setting & | set | ) | [virtual] |
Create object from the following structure
class = 'mDirich'; k = 1; % multiplicative constant k --- optional --- beta0 = [...]; % initial values of beta betac = [...]; % initial values of beta stabilizing coefficients --- inherited fields --- bdm::pdf::from_setting
If the optional fields are not given, they will be filled as follows:
beta0 = [1,1,1,...]; betac = 0.1 * [1,1,1,...];
Reimplemented from bdm::pdf.
The documentation for this class was generated from the following files:
- exp_family.h
- exp_family.cpp
Generated on 2 Dec 2013 for mixpp by 1.4.7