root/library/doc/html/classbdm_1_1multiBM.html @ 472

Revision 472, 26.7 kB (checked in by mido, 15 years ago)

obnovena dokumentace, vcetne pridani mnoha novych doc-souboru do svn

RevLine 
[259]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: bdm::multiBM Class Reference</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
[290]5<link href="doxygen.css" rel="stylesheet" type="text/css">
[259]6</head><body>
[472]7<!-- Generated by Doxygen 1.5.9 -->
[271]8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
[259]49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
[271]52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
[259]53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
[290]54      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
[259]55      <li><a href="files.html"><span>Files</span></a></li>
56    </ul>
57  </div>
58  <div class="tabs">
59    <ul>
60      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
[290]61      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
[259]62      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
63      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
64    </ul>
65  </div>
[271]66  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1multiBM.html">multiBM</a>
[259]67  </div>
68</div>
69<div class="contents">
[290]70<h1>bdm::multiBM Class Reference</h1><!-- doxytag: class="bdm::multiBM" --><!-- doxytag: inherits="bdm::BMEF" -->Estimator for Multinomial density. 
71<a href="#_details">More...</a>
[259]72<p>
[472]73<code>#include &lt;<a class="el" href="exp__family_8h_source.html">exp_family.h</a>&gt;</code>
[290]74<p>
[259]75
76<p>
[290]77<a href="classbdm_1_1multiBM-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
[259]78<tr><td></td></tr>
79<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
[270]80<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4dd6d9522a8a605776d21bac9bd9daf"></a><!-- doxytag: member="bdm::multiBM::multiBM" ref="c4dd6d9522a8a605776d21bac9bd9daf" args="()" -->
81&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#c4dd6d9522a8a605776d21bac9bd9daf">multiBM</a> ()</td></tr>
[259]82
83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4378cf8037f6bed29c74eea63344b31"></a><!-- doxytag: member="bdm::multiBM::multiBM" ref="c4378cf8037f6bed29c74eea63344b31" args="(const multiBM &amp;B)" -->
85&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#c4378cf8037f6bed29c74eea63344b31">multiBM</a> (const <a class="el" href="classbdm_1_1multiBM.html">multiBM</a> &amp;B)</td></tr>
86
87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br></td></tr>
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dbe6b90d410dc062a233d1dc09eeba52"></a><!-- doxytag: member="bdm::multiBM::set_statistics" ref="dbe6b90d410dc062a233d1dc09eeba52" args="(const BM *mB0)" -->
89void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#dbe6b90d410dc062a233d1dc09eeba52">set_statistics</a> (const <a class="el" href="classbdm_1_1BM.html">BM</a> *mB0)</td></tr>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets sufficient statistics to match that of givefrom mB0. <br></td></tr>
92<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#1e4bf41b61937fd80f34049742e23f95">bayes</a> (const vec &amp;dt)</td></tr>
93
94<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Incremental Bayes rule.  <a href="#1e4bf41b61937fd80f34049742e23f95"></a><br></td></tr>
95<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#e157b607c1e3fa91d42aeea44458e2bf">logpred</a> (const vec &amp;dt) const </td></tr>
96
97<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aaeb18c989088feb8d26d300e4971732"></a><!-- doxytag: member="bdm::multiBM::flatten" ref="aaeb18c989088feb8d26d300e4971732" args="(const BMEF *B)" -->
98void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#aaeb18c989088feb8d26d300e4971732">flatten</a> (const <a class="el" href="classbdm_1_1BMEF.html">BMEF</a> *B)</td></tr>
99
100<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flatten the posterior according to the given <a class="el" href="classbdm_1_1BMEF.html" title="Estimator for Exponential family.">BMEF</a> (of the same type!). <br></td></tr>
[271]101<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cd682a9a179e6c42a5d28e71c2a2cbfa"></a><!-- doxytag: member="bdm::multiBM::posterior" ref="cd682a9a179e6c42a5d28e71c2a2cbfa" args="() const " -->
102const <a class="el" href="classbdm_1_1epdf.html">epdf</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>posterior</b> () const </td></tr>
[259]103
104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c996f6b9ca930182030e1027318f1ca6"></a><!-- doxytag: member="bdm::multiBM::_e" ref="c996f6b9ca930182030e1027318f1ca6" args="() const " -->
[270]105const <a class="el" href="classbdm_1_1eDirich.html">eDirich</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>_e</b> () const </td></tr>
[259]106
107<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7a480eace4446661bacca94c57499f01"></a><!-- doxytag: member="bdm::multiBM::set_parameters" ref="7a480eace4446661bacca94c57499f01" args="(const vec &amp;beta0)" -->
108void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (const vec &amp;beta0)</td></tr>
109
110<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2b528b7a41ca67163152142f5404051"></a><!-- doxytag: member="bdm::multiBM::set_statistics" ref="d2b528b7a41ca67163152142f5404051" args="(const BMEF *BM0)" -->
111virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#d2b528b7a41ca67163152142f5404051">set_statistics</a> (const <a class="el" href="classbdm_1_1BMEF.html">BMEF</a> *BM0)</td></tr>
112
113<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get statistics from another model <br></td></tr>
114<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf58deb99af2a6cc674f13ff90300de6"></a><!-- doxytag: member="bdm::multiBM::bayes" ref="bf58deb99af2a6cc674f13ff90300de6" args="(const vec &amp;data, const double w)" -->
115virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#bf58deb99af2a6cc674f13ff90300de6">bayes</a> (const vec &amp;data, const double w)</td></tr>
116
117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Weighted update of sufficient statistics (Bayes rule). <br></td></tr>
[290]118<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62d2e4691bed41a1efa6b9c2e35e5c67"></a><!-- doxytag: member="bdm::multiBM::_copy_" ref="62d2e4691bed41a1efa6b9c2e35e5c67" args="() const " -->
119<a class="el" href="classbdm_1_1BMEF.html">BMEF</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#62d2e4691bed41a1efa6b9c2e35e5c67">_copy_</a> () const </td></tr>
[259]120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flatten the posterior as if to keep nu0 data. <br></td></tr>
[396]122<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::multiBM::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" -->
123virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr>
[353]124
125<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr>
[396]126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0551e3121091c5199bf4413b50522176"></a><!-- doxytag: member="bdm::multiBM::from_setting" ref="0551e3121091c5199bf4413b50522176" args="(const Setting &amp;set)" -->
127virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">from_setting</a> (const Setting &amp;set)</td></tr>
[353]128
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method arrange instance properties according the data stored in the Setting structure. <br></td></tr>
[396]130<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::multiBM::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " -->
131virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr>
[353]132
133<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr>
[396]134<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::multiBM::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" -->
135virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr>
[368]136
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br></td></tr>
[270]138<tr><td colspan="2"><div class="groupHeader">Mathematical operations</div></td></tr>
[259]139<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1dee3fddaf021e62d925289660a707dc"></a><!-- doxytag: member="bdm::multiBM::bayesB" ref="1dee3fddaf021e62d925289660a707dc" args="(const mat &amp;Dt)" -->
140virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#1dee3fddaf021e62d925289660a707dc">bayesB</a> (const mat &amp;Dt)</td></tr>
141
142<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Batch Bayes rule (columns of Dt are observations). <br></td></tr>
143<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e8ebe61fb14990abe1254bd3dda5fae"></a><!-- doxytag: member="bdm::multiBM::logpred_m" ref="0e8ebe61fb14990abe1254bd3dda5fae" args="(const mat &amp;dt) const " -->
144vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#0e8ebe61fb14990abe1254bd3dda5fae">logpred_m</a> (const mat &amp;dt) const </td></tr>
145
146<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Matrix version of logpred. <br></td></tr>
[270]147<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="688d7a2aced1e06aa1c468d73a9e5eba"></a><!-- doxytag: member="bdm::multiBM::epredictor" ref="688d7a2aced1e06aa1c468d73a9e5eba" args="() const " -->
148virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#688d7a2aced1e06aa1c468d73a9e5eba">epredictor</a> () const </td></tr>
[259]149
[397]150<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a predictive density <img class="formulaInl" alt="$ f(d_{t+1} |d_{t}, \ldots d_{0}) $" src="form_14.png">. <br></td></tr>
[270]151<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="598b25e3f3d96a5bc00a5faeb5b3c912"></a><!-- doxytag: member="bdm::multiBM::predictor" ref="598b25e3f3d96a5bc00a5faeb5b3c912" args="() const " -->
152virtual <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#598b25e3f3d96a5bc00a5faeb5b3c912">predictor</a> () const </td></tr>
[259]153
[396]154<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a conditional density 1-step ahead predictor. <br></td></tr>
[270]155<tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr>
[269]156<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ff2d8755ba0b3def927d31305c03b09c"></a><!-- doxytag: member="bdm::multiBM::_drv" ref="ff2d8755ba0b3def927d31305c03b09c" args="() const " -->
[270]157const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_drv</b> () const </td></tr>
[269]158
159<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f135ae6dce7e9f30c9f88229c7930b96"></a><!-- doxytag: member="bdm::multiBM::set_drv" ref="f135ae6dce7e9f30c9f88229c7930b96" args="(const RV &amp;rv)" -->
[270]160void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_drv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv)</td></tr>
[269]161
[271]162<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b38d92f17620813ad872d86e01a26e5e"></a><!-- doxytag: member="bdm::multiBM::set_rv" ref="b38d92f17620813ad872d86e01a26e5e" args="(const RV &amp;rv)" -->
163void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_rv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv)</td></tr>
164
[259]165<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5be65d37dedfe33a3671e7065f523a70"></a><!-- doxytag: member="bdm::multiBM::_ll" ref="5be65d37dedfe33a3671e7065f523a70" args="() const " -->
[270]166double&nbsp;</td><td class="memItemRight" valign="bottom"><b>_ll</b> () const </td></tr>
[259]167
168<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="236b3abbcc93594fc97cd86d82c1a83f"></a><!-- doxytag: member="bdm::multiBM::set_evalll" ref="236b3abbcc93594fc97cd86d82c1a83f" args="(bool evl0)" -->
[270]169void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_evalll</b> (bool evl0)</td></tr>
[259]170
171<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
172<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ecc6878abbd20eb8d8e43b6ab3f941a"></a><!-- doxytag: member="bdm::multiBM::est" ref="9ecc6878abbd20eb8d8e43b6ab3f941a" args="" -->
173<a class="el" href="classbdm_1_1eDirich.html">eDirich</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#9ecc6878abbd20eb8d8e43b6ab3f941a">est</a></td></tr>
174
175<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Conjugate prior and posterior. <br></td></tr>
176<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="044263356944c92209eecd39a5187d25"></a><!-- doxytag: member="bdm::multiBM::beta" ref="044263356944c92209eecd39a5187d25" args="" -->
177vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1multiBM.html#044263356944c92209eecd39a5187d25">beta</a></td></tr>
178
179<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer inside est to sufficient statistics. <br></td></tr>
180<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1331865e10fb1ccef65bb4c47fa3be64"></a><!-- doxytag: member="bdm::multiBM::frg" ref="1331865e10fb1ccef65bb4c47fa3be64" args="" -->
181double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#1331865e10fb1ccef65bb4c47fa3be64">frg</a></td></tr>
182
183<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">forgetting factor <br></td></tr>
184<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06e7b3ac03e10017d4288c76888e2865"></a><!-- doxytag: member="bdm::multiBM::last_lognc" ref="06e7b3ac03e10017d4288c76888e2865" args="" -->
185double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#06e7b3ac03e10017d4288c76888e2865">last_lognc</a></td></tr>
186
187<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cached value of lognc() in the previous step (used in evaluation of <code>ll</code> ) <br></td></tr>
[269]188<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c400357e37d27a4834b2b1d9211009ed"></a><!-- doxytag: member="bdm::multiBM::drv" ref="c400357e37d27a4834b2b1d9211009ed" args="" -->
189<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed">drv</a></td></tr>
190
191<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Random variable of the data (optional). <br></td></tr>
[259]192<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4064b6559d962633e4372b12f4cd204a"></a><!-- doxytag: member="bdm::multiBM::ll" ref="4064b6559d962633e4372b12f4cd204a" args="" -->
193double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a">ll</a></td></tr>
194
195<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Logarithm of marginalized data likelihood. <br></td></tr>
196<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="faff0ad12556fe7dc0e2807d4fd938ee"></a><!-- doxytag: member="bdm::multiBM::evalll" ref="faff0ad12556fe7dc0e2807d4fd938ee" args="" -->
197bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee">evalll</a></td></tr>
198
199<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If true, the filter will compute likelihood of the data record and store it in <code>ll</code> . Set to false if you want to save computational time. <br></td></tr>
[290]200<tr><td colspan="2"><br><h2>Extension to conditional BM</h2></td></tr>
201<tr><td colspan="2">This extension is useful e.g. in Marginalized Particle Filter (<a class="el" href="classbdm_1_1MPF.html">bdm::MPF</a>). Alternatively, it can be used for automated connection to <a class="el" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> when the condition is observed <br><br></td></tr>
202<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b5e8e016be16e4029c789063cb3f3b33"></a><!-- doxytag: member="bdm::multiBM::_rvc" ref="b5e8e016be16e4029c789063cb3f3b33" args="() const " -->
203const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#b5e8e016be16e4029c789063cb3f3b33">_rvc</a> () const </td></tr>
204
205<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
206<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6799f4b16a6a59ed58b1d0d6e17116f4"></a><!-- doxytag: member="bdm::multiBM::condition" ref="6799f4b16a6a59ed58b1d0d6e17116f4" args="(const vec &amp;val)" -->
207virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#6799f4b16a6a59ed58b1d0d6e17116f4">condition</a> (const vec &amp;val)</td></tr>
208
209<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Substitute <code>val</code> for <code>rvc</code>. <br></td></tr>
210<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de95c590d650b2db423d53992f0906cb"></a><!-- doxytag: member="bdm::multiBM::rvc" ref="de95c590d650b2db423d53992f0906cb" args="" -->
211<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb">rvc</a></td></tr>
212
213<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Name of extension variable. <br></td></tr>
214<tr><td colspan="2"><br><h2>Logging of results</h2></td></tr>
[353]215<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="adb539fa2585c8a2a91c54e5aebf330e"></a><!-- doxytag: member="bdm::multiBM::set_options" ref="adb539fa2585c8a2a91c54e5aebf330e" args="(const string &amp;opt)" -->
216virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e">set_options</a> (const string &amp;opt)</td></tr>
[290]217
[472]218<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set boolean options from a string, recognized are: "logbounds,logll". <br></td></tr>
[323]219<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2298ca6af9b13a78a4c9e18ab43f1827"></a><!-- doxytag: member="bdm::multiBM::log_add" ref="2298ca6af9b13a78a4c9e18ab43f1827" args="(logger &amp;L, const string &amp;name=&quot;&quot;)" -->
220virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#2298ca6af9b13a78a4c9e18ab43f1827">log_add</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &amp;L, const string &amp;name=&quot;&quot;)</td></tr>
[290]221
222<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add all logged variables to a <a class="el" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a>. <br></td></tr>
[323]223<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b517e1679eaa94e803ea4cd0b8efbcd7"></a><!-- doxytag: member="bdm::multiBM::logit" ref="b517e1679eaa94e803ea4cd0b8efbcd7" args="(logger &amp;L)" -->
224virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>logit</b> (<a class="el" href="classbdm_1_1logger.html">logger</a> &amp;L)</td></tr>
[290]225
226<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="109c1a626a69031658e3a44e9e500cca"></a><!-- doxytag: member="bdm::multiBM::LIDs" ref="109c1a626a69031658e3a44e9e500cca" args="" -->
227ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca">LIDs</a></td></tr>
228
[353]229<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll]. <br></td></tr>
230<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="398b7e7a162cf37d0022d6126495f207"></a><!-- doxytag: member="bdm::multiBM::LFlags" ref="398b7e7a162cf37d0022d6126495f207" args="" -->
231ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207">LFlags</a></td></tr>
[290]232
[353]233<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flags for logging - same size as LIDs, each entry correspond to the same in LIDs. <br></td></tr>
[259]234</table>
[290]235<hr><a name="_details"></a><h2>Detailed Description</h2>
236Estimator for Multinomial density. <hr><h2>Member Function Documentation</h2>
[259]237<a class="anchor" name="1e4bf41b61937fd80f34049742e23f95"></a><!-- doxytag: member="bdm::multiBM::bayes" ref="1e4bf41b61937fd80f34049742e23f95" args="(const vec &amp;dt)" -->
238<div class="memitem">
239<div class="memproto">
240      <table class="memname">
241        <tr>
242          <td class="memname">void bdm::multiBM::bayes           </td>
243          <td>(</td>
244          <td class="paramtype">const vec &amp;&nbsp;</td>
245          <td class="paramname"> <em>dt</em>          </td>
246          <td>&nbsp;)&nbsp;</td>
247          <td><code> [inline, virtual]</code></td>
248        </tr>
249      </table>
250</div>
251<div class="memdoc">
252
253<p>
254Incremental Bayes rule.
255<p>
256<dl compact><dt><b>Parameters:</b></dt><dd>
257  <table border="0" cellspacing="2" cellpadding="0">
258    <tr><td valign="top"></td><td valign="top"><em>dt</em>&nbsp;</td><td>vector of input data </td></tr>
259  </table>
260</dl>
261
262<p>Reimplemented from <a class="el" href="classbdm_1_1BMEF.html#c287f4c0c1ea31b91572ec45351838f1">bdm::BMEF</a>.</p>
263
[472]264<p>References <a class="el" href="exp__family_8h_source.html#l00311">beta</a>, <a class="el" href="exp__family_8h_source.html#l00309">est</a>, <a class="el" href="bdmbase_8h_source.html#l00741">bdm::BM::evalll</a>, <a class="el" href="exp__family_8h_source.html#l00086">bdm::BMEF::frg</a>, <a class="el" href="exp__family_8h_source.html#l00088">bdm::BMEF::last_lognc</a>, <a class="el" href="bdmbase_8h_source.html#l00739">bdm::BM::ll</a>, and <a class="el" href="exp__family_8h_source.html#l00289">bdm::eDirich::lognc()</a>.</p>
[259]265
266</div>
267</div><p>
268<a class="anchor" name="e157b607c1e3fa91d42aeea44458e2bf"></a><!-- doxytag: member="bdm::multiBM::logpred" ref="e157b607c1e3fa91d42aeea44458e2bf" args="(const vec &amp;dt) const " -->
269<div class="memitem">
270<div class="memproto">
271      <table class="memname">
272        <tr>
273          <td class="memname">double bdm::multiBM::logpred           </td>
274          <td>(</td>
275          <td class="paramtype">const vec &amp;&nbsp;</td>
276          <td class="paramname"> <em>dt</em>          </td>
277          <td>&nbsp;)&nbsp;</td>
278          <td> const<code> [inline, virtual]</code></td>
279        </tr>
280      </table>
281</div>
282<div class="memdoc">
283
284<p>
285Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out.
286<p>Reimplemented from <a class="el" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">bdm::BM</a>.</p>
287
[472]288<p>References <a class="el" href="exp__family_8h_source.html#l00300">bdm::eDirich::_beta()</a>, <a class="el" href="exp__family_8h_source.html#l00311">beta</a>, <a class="el" href="exp__family_8h_source.html#l00309">est</a>, <a class="el" href="bdmbase_8h_source.html#l00741">bdm::BM::evalll</a>, <a class="el" href="exp__family_8h_source.html#l00086">bdm::BMEF::frg</a>, <a class="el" href="exp__family_8h_source.html#l00088">bdm::BMEF::last_lognc</a>, and <a class="el" href="exp__family_8h_source.html#l00289">bdm::eDirich::lognc()</a>.</p>
[259]289
290</div>
291</div><p>
292<hr>The documentation for this class was generated from the following file:<ul>
[472]293<li><a class="el" href="exp__family_8h_source.html">exp_family.h</a></ul>
[397]294</div>
[472]295<hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:07:02 2009 for mixpp by&nbsp;
[259]296<a href="http://www.doxygen.org/index.html">
[472]297<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
[259]298</body>
299</html>
Note: See TracBrowser for help on using the browser.