70 | | <h1>bdm::egrid Class Reference</h1><!-- doxytag: class="bdm::egrid" --><!-- doxytag: inherits="bdm::epdf" --><code>#include <<a class="el" href="discrete_8h-source.html">discrete.h</a>></code> |
71 | | <p> |
72 | | |
73 | | <p> |
74 | | <a href="classbdm_1_1egrid-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
75 | | <tr><td></td></tr> |
76 | | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
77 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a9f0d4f725b189b08990c5997aa57ae"></a><!-- doxytag: member="bdm::egrid::evallog" ref="3a9f0d4f725b189b08990c5997aa57ae" args="(const vec &val)" --> |
78 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egrid.html#3a9f0d4f725b189b08990c5997aa57ae">evallog</a> (const vec &val)</td></tr> |
79 | | |
80 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">we assume that evallog is not called too often otherwise we should cache log(values) <br></td></tr> |
81 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> |
82 | | |
83 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egrid::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
84 | | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
85 | | |
86 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
87 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egrid::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
88 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
89 | | |
90 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
91 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egrid::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
92 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
93 | | |
94 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
| 73 | <h1>bdm::egrid Class Reference</h1><!-- doxytag: class="bdm::egrid" --><!-- doxytag: inherits="bdm::epdf" --> |
| 74 | <p><code>#include <<a class="el" href="discrete_8h_source.html">discrete.h</a>></code></p> |
| 75 | |
| 76 | <p><a href="classbdm_1_1egrid-members.html">List of all members.</a></p> |
| 77 | <table border="0" cellpadding="0" cellspacing="0"> |
| 78 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
| 79 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a9f0d4f725b189b08990c5997aa57ae"></a><!-- doxytag: member="bdm::egrid::evallog" ref="a3a9f0d4f725b189b08990c5997aa57ae" args="(const vec &val)" --> |
| 80 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egrid.html#a3a9f0d4f725b189b08990c5997aa57ae">evallog</a> (const vec &val)</td></tr> |
| 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">we assume that evallog is not called too often otherwise we should cache log(values) <br/></td></tr> |
| 82 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> |
| 83 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egrid::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
| 84 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
| 86 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egrid::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
| 87 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
| 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
| 89 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egrid::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
| 90 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
109 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75ba57a89681a8efec488f5796c7cc1b"></a><!-- doxytag: member="bdm::egrid::sample" ref="75ba57a89681a8efec488f5796c7cc1b" args="() const " --> |
110 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b">sample</a> () const </td></tr> |
111 | | |
112 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_7.png"> from density <img class="formulaInl" alt="$ f_x()$" src="form_8.png">. <br></td></tr> |
113 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::egrid::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
114 | | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
115 | | |
116 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_9.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_10.png">. <br></td></tr> |
117 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#deab266d63c236c277538867d5c3f249">evallog</a> (const vec &val) const </td></tr> |
118 | | |
119 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="d08b68a5abd461f1b6519597e344caf8" args="(const mat &Val) const " --> |
120 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#d08b68a5abd461f1b6519597e344caf8">evallog_m</a> (const mat &Val) const </td></tr> |
121 | | |
122 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
123 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> |
124 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array< vec > &Avec) const </td></tr> |
125 | | |
126 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
127 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::egrid::condition" ref="1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &rv) const " --> |
128 | | virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#1499d35b79bce0cfa64fc5cafb9c03b2">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
129 | | |
130 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> |
131 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::egrid::marginal" ref="a84b05f5293cab2aeb4e07faffa60906" args="(const RV &rv) const " --> |
132 | | virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a84b05f5293cab2aeb4e07faffa60906">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
133 | | |
134 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> |
135 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0c8d13d788094605b3cdab20a6e22b75"></a><!-- doxytag: member="bdm::egrid::mean" ref="0c8d13d788094605b3cdab20a6e22b75" args="() const " --> |
136 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#0c8d13d788094605b3cdab20a6e22b75">mean</a> () const </td></tr> |
137 | | |
138 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
139 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4543d40ccfc5d549b0c831a57a3ed84c"></a><!-- doxytag: member="bdm::egrid::variance" ref="4543d40ccfc5d549b0c831a57a3ed84c" args="() const " --> |
140 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#4543d40ccfc5d549b0c831a57a3ed84c">variance</a> () const </td></tr> |
141 | | |
142 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
143 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::egrid::qbounds" ref="0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
144 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &lb, vec &ub, double percentage=0.95) const </td></tr> |
145 | | |
146 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br></td></tr> |
| 108 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> |
| 109 | <br/><br/></div></td></tr> |
| 110 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75ba57a89681a8efec488f5796c7cc1b"></a><!-- doxytag: member="bdm::egrid::sample" ref="a75ba57a89681a8efec488f5796c7cc1b" args="() const " --> |
| 111 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a75ba57a89681a8efec488f5796c7cc1b">sample</a> () const </td></tr> |
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_7.png"/> from density <img class="formulaInl" alt="$ f_x()$" src="form_8.png"/>. <br/></td></tr> |
| 113 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::egrid::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
| 114 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_9.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_10.png"/>. <br/></td></tr> |
| 116 | <tr><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#adeab266d63c236c277538867d5c3f249">evallog</a> (const vec &val) const </td></tr> |
| 117 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="ad08b68a5abd461f1b6519597e344caf8" args="(const mat &Val) const " --> |
| 118 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ad08b68a5abd461f1b6519597e344caf8">evallog_m</a> (const mat &Val) const </td></tr> |
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
| 120 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="a9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> |
| 121 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array< vec > &Avec) const </td></tr> |
| 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
| 123 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::egrid::condition" ref="a1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &rv) const " --> |
| 124 | virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a1499d35b79bce0cfa64fc5cafb9c03b2">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br/></td></tr> |
| 126 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::egrid::marginal" ref="aa84b05f5293cab2aeb4e07faffa60906" args="(const RV &rv) const " --> |
| 127 | virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa84b05f5293cab2aeb4e07faffa60906">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br/></td></tr> |
| 129 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c8d13d788094605b3cdab20a6e22b75"></a><!-- doxytag: member="bdm::egrid::mean" ref="a0c8d13d788094605b3cdab20a6e22b75" args="() const " --> |
| 130 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0c8d13d788094605b3cdab20a6e22b75">mean</a> () const </td></tr> |
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
| 132 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4543d40ccfc5d549b0c831a57a3ed84c"></a><!-- doxytag: member="bdm::egrid::variance" ref="a4543d40ccfc5d549b0c831a57a3ed84c" args="() const " --> |
| 133 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4543d40ccfc5d549b0c831a57a3ed84c">variance</a> () const </td></tr> |
| 134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> |
| 135 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::egrid::qbounds" ref="a0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
| 136 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &lb, vec &ub, double percentage=0.95) const </td></tr> |
| 137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br/></td></tr> |
148 | | <tr><td colspan="2"><div class="groupText">Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: <br><br></div></td></tr> |
149 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::egrid::set_rv" ref="f423e28448dbb69ef4905295ec8de8ff" args="(const RV &rv0)" --> |
150 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
151 | | |
152 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
153 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::egrid::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
154 | | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
155 | | |
156 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
157 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::egrid::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
158 | | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> |
159 | | |
160 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
| 139 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp14fc6e1cb822e9dfc5edc16c20fabe11"></a> Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: </p> |
| 140 | <br/><br/></div></td></tr> |
| 141 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::egrid::set_rv" ref="af423e28448dbb69ef4905295ec8de8ff" args="(const RV &rv0)" --> |
| 142 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br/></td></tr> |
| 144 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::egrid::isnamed" ref="ac4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
| 145 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br/></td></tr> |
| 147 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::egrid::_rv" ref="aa4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
| 148 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> |
| 149 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br/></td></tr> |
199 | | |
200 | | <p> |
201 | | Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity |
202 | | <p>Reimplemented in <a class="el" href="classbdm_1_1emix.html#0f3db99f730bde6b7953931594537e8e">bdm::emix</a>, <a class="el" href="classbdm_1_1eprod.html#a5a91e67d2f74ff2b0b8eecde2fa42e2">bdm::eprod</a>, <a class="el" href="classbdm_1_1eEF.html#a36d06ecdd6f4c79dc122510eaccc692">bdm::eEF</a>, <a class="el" href="classbdm_1_1egamma.html#a8e11e5a580ff42a1b205974c60768c6">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#caa07b8307bd793d5339d6583e0aba81">bdm::euni</a>, <a class="el" href="classbdm_1_1eiWishartCh.html#a6ddbd815b8b666dd542e97f009f89bb">bdm::eiWishartCh</a>, <a class="el" href="classbdm_1_1eEmp.html#01654c014d3aa068f8d4ecba4be86d09">bdm::eEmp</a>, and <a class="el" href="classbdm_1_1merger__mix.html#9737ad6d1ecf4e0cdd6cea6a40875a34">bdm::merger_mix</a>.</p> |
203 | | |
204 | | <p>References <a class="el" href="bdmerror_8h-source.html#l00051">bdm_error</a>.</p> |
205 | | |
206 | | <p>Referenced by <a class="el" href="bdmbase_8cpp-source.html#l00152">bdm::epdf::evallog_m()</a>, and <a class="el" href="emix_8h-source.html#l00076">bdm::mratio::evallogcond()</a>.</p> |
207 | | |
208 | | </div> |
209 | | </div><p> |
210 | | <a class="anchor" name="fa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::egrid::from_setting" ref="fa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
| 186 | <p>Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity </p> |
| 187 | |
| 188 | <p>Reimplemented in <a class="el" href="classbdm_1_1emix.html#a0f3db99f730bde6b7953931594537e8e">bdm::emix</a>, <a class="el" href="classbdm_1_1eprod.html#aa5a91e67d2f74ff2b0b8eecde2fa42e2">bdm::eprod</a>, <a class="el" href="classbdm_1_1eEF.html#aa36d06ecdd6f4c79dc122510eaccc692">bdm::eEF</a>, <a class="el" href="classbdm_1_1egamma.html#aa8e11e5a580ff42a1b205974c60768c6">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#acaa07b8307bd793d5339d6583e0aba81">bdm::euni</a>, <a class="el" href="classbdm_1_1eiWishartCh.html#aa6ddbd815b8b666dd542e97f009f89bb">bdm::eiWishartCh</a>, <a class="el" href="classbdm_1_1eEmp.html#a01654c014d3aa068f8d4ecba4be86d09">bdm::eEmp</a>, and <a class="el" href="classbdm_1_1merger__mix.html#a9737ad6d1ecf4e0cdd6cea6a40875a34">bdm::merger_mix</a>.</p> |
| 189 | |
| 190 | <p>References <a class="el" href="bdmerror_8h_source.html#l00051">bdm_error</a>.</p> |
| 191 | |
| 192 | <p>Referenced by <a class="el" href="bdmbase_8cpp_source.html#l00152">bdm::epdf::evallog_m()</a>, and <a class="el" href="emix_8h_source.html#l00076">bdm::mratio::evallogcond()</a>.</p> |
| 193 | |
| 194 | </div> |
| 195 | </div> |
| 196 | <a class="anchor" id="afa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::egrid::from_setting" ref="afa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
231 | | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
232 | | |
233 | | <p>Reimplemented in <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p> |
234 | | |
235 | | <p>References <a class="el" href="bdmbase_8h-source.html#l00357">bdm::epdf::set_rv()</a>.</p> |
236 | | |
237 | | </div> |
238 | | </div><p> |
239 | | <hr>The documentation for this class was generated from the following file:<ul> |
240 | | <li><a class="el" href="discrete_8h-source.html">discrete.h</a></ul> |
241 | | </div> |
242 | | <hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 29 20:49:46 2009 for mixpp by |
| 216 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
| 217 | |
| 218 | <p>Reimplemented in <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#a55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#a8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#a77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#a10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#a9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p> |
| 219 | |
| 220 | <p>References <a class="el" href="bdmbase_8h_source.html#l00357">bdm::epdf::set_rv()</a>.</p> |
| 221 | |
| 222 | </div> |
| 223 | </div> |
| 224 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 225 | <li><a class="el" href="discrete_8h_source.html">discrete.h</a></li> |
| 226 | </ul> |
| 227 | </div> |
| 228 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 30 22:10:50 2009 for mixpp by |