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::mlnorm< sq_T > Class Template Reference</title> |
---|
4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.9 --> |
---|
8 | <script type="text/javascript"> |
---|
9 | <!-- |
---|
10 | function 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 | } |
---|
22 | function 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 | } |
---|
46 | window.onload = initDynSections; |
---|
47 | --> |
---|
48 | </script> |
---|
49 | <div class="navigation" id="top"> |
---|
50 | <div class="tabs"> |
---|
51 | <ul> |
---|
52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
54 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
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 List</span></a></li> |
---|
61 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
62 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
63 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
64 | </ul> |
---|
65 | </div> |
---|
66 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mlnorm.html">mlnorm</a> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | <div class="contents"> |
---|
70 | <h1>bdm::mlnorm< sq_T > Class Template Reference</h1><!-- doxytag: class="bdm::mlnorm" --><!-- doxytag: inherits="bdm::mEF" -->Normal distributed linear function with linear function of mean value;. |
---|
71 | <a href="#_details">More...</a> |
---|
72 | <p> |
---|
73 | <code>#include <<a class="el" href="exp__family_8h_source.html">exp_family.h</a>></code> |
---|
74 | <p> |
---|
75 | |
---|
76 | <p> |
---|
77 | <a href="classbdm_1_1mlnorm-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
78 | <tr><td></td></tr> |
---|
79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
80 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#0dafc0196e7e07fd06dc6716e0e18bc2">condition</a> (const vec &cond)</td></tr> |
---|
81 | |
---|
82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56e587952f94fcac6cfc999eae6dbced"></a><!-- doxytag: member="bdm::mlnorm::_mu_const" ref="56e587952f94fcac6cfc999eae6dbced" args="()" --> |
---|
83 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#56e587952f94fcac6cfc999eae6dbced">_mu_const</a> ()</td></tr> |
---|
84 | |
---|
85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="262a2a486bff585f34bb6a5005b02614"></a><!-- doxytag: member="bdm::mlnorm::_A" ref="262a2a486bff585f34bb6a5005b02614" args="()" --> |
---|
87 | mat & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#262a2a486bff585f34bb6a5005b02614">_A</a> ()</td></tr> |
---|
88 | |
---|
89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78120ecd1c2b1d7e80124b4603504604"></a><!-- doxytag: member="bdm::mlnorm::_R" ref="78120ecd1c2b1d7e80124b4603504604" args="()" --> |
---|
91 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#78120ecd1c2b1d7e80124b4603504604">_R</a> ()</td></tr> |
---|
92 | |
---|
93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
94 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#8582928555c309a2865f385dd0441fd1">from_setting</a> (const Setting &set)</td></tr> |
---|
95 | |
---|
96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::mlnorm::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
97 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
98 | |
---|
99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::mlnorm::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
101 | 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> |
---|
102 | |
---|
103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::mlnorm::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
105 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
106 | |
---|
107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
108 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2dcc06a3dd71f038efbe14dc34d937ae"></a><!-- doxytag: member="bdm::mlnorm::mlnorm" ref="2dcc06a3dd71f038efbe14dc34d937ae" args="()" --> |
---|
110 | </td><td class="memItemRight" valign="bottom"><b>mlnorm</b> ()</td></tr> |
---|
111 | |
---|
112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf7edd1aea62178d7b5e555df261542d"></a><!-- doxytag: member="bdm::mlnorm::mlnorm" ref="cf7edd1aea62178d7b5e555df261542d" args="(const mat &A, const vec &mu0, const sq_T &R)" --> |
---|
113 | </td><td class="memItemRight" valign="bottom"><b>mlnorm</b> (const mat &A, const vec &mu0, const sq_T &R)</td></tr> |
---|
114 | |
---|
115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d18dec3167584338a4775c1d165d96f"></a><!-- doxytag: member="bdm::mlnorm::set_parameters" ref="5d18dec3167584338a4775c1d165d96f" args="(const mat &A, const vec &mu0, const sq_T &R)" --> |
---|
116 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#5d18dec3167584338a4775c1d165d96f">set_parameters</a> (const mat &A, const vec &mu0, const sq_T &R)</td></tr> |
---|
117 | |
---|
118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr> |
---|
119 | <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> |
---|
120 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#b024f2e636e5507c755de4a6df1f1e99">samplecond</a> (const vec &cond)</td></tr> |
---|
121 | |
---|
122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">. <a href="#b024f2e636e5507c755de4a6df1f1e99"></a><br></td></tr> |
---|
123 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#6e497d501331057309d2fddf63259d1a">samplecond_m</a> (const vec &cond, int N)</td></tr> |
---|
124 | |
---|
125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#6e497d501331057309d2fddf63259d1a"></a><br></td></tr> |
---|
126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cfcbb897bf42015a7979b17d891fd9b5"></a><!-- doxytag: member="bdm::mlnorm::evallogcond" ref="cfcbb897bf42015a7979b17d891fd9b5" args="(const vec &dt, const vec &cond)" --> |
---|
127 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#cfcbb897bf42015a7979b17d891fd9b5">evallogcond</a> (const vec &dt, const vec &cond)</td></tr> |
---|
128 | |
---|
129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. In some cases, this operation can be implemented efficiently. <br></td></tr> |
---|
130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f97c61ecfb1f44ef6f08dee7bc15eab3"></a><!-- doxytag: member="bdm::mlnorm::evallogcond_m" ref="f97c61ecfb1f44ef6f08dee7bc15eab3" args="(const mat &Dt, const vec &cond)" --> |
---|
131 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#f97c61ecfb1f44ef6f08dee7bc15eab3">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> |
---|
132 | |
---|
133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d7d3c23e3273e97c12c396dcc06b606"></a><!-- doxytag: member="bdm::mlnorm::evallogcond_m" ref="2d7d3c23e3273e97c12c396dcc06b606" args="(const Array< vec > &Dt, const vec &cond)" --> |
---|
135 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#2d7d3c23e3273e97c12c396dcc06b606">evallogcond_m</a> (const Array< vec > &Dt, const vec &cond)</td></tr> |
---|
136 | |
---|
137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array<vec> version of evallogcond. <br></td></tr> |
---|
138 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mlnorm::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" --> |
---|
140 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr> |
---|
141 | |
---|
142 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mlnorm::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> |
---|
143 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> |
---|
144 | |
---|
145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mlnorm::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" --> |
---|
146 | int </td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr> |
---|
147 | |
---|
148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mlnorm::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> |
---|
149 | int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> |
---|
150 | |
---|
151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4c2d7d3d1d75cca84993e77867d1ffbe"></a><!-- doxytag: member="bdm::mlnorm::e" ref="4c2d7d3d1d75cca84993e77867d1ffbe" args="()" --> |
---|
152 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><b>e</b> ()</td></tr> |
---|
153 | |
---|
154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ba1b384c9c1cb18422a8ba32a5d019"></a><!-- doxytag: member="bdm::mlnorm::set_ep" ref="a4ba1b384c9c1cb18422a8ba32a5d019" args="(shared_ptr< epdf > ep)" --> |
---|
155 | void </td><td class="memItemRight" valign="bottom"><b>set_ep</b> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > ep)</td></tr> |
---|
156 | |
---|
157 | <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> |
---|
158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mlnorm::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> |
---|
159 | void </td><td class="memItemRight" valign="bottom"><b>set_rvc</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc0)</td></tr> |
---|
160 | |
---|
161 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mlnorm::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> |
---|
162 | void </td><td class="memItemRight" valign="bottom"><b>set_rv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
---|
163 | |
---|
164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mlnorm::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> |
---|
165 | bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> |
---|
166 | |
---|
167 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6de45ab731143e70a94318df586c36ba"></a><!-- doxytag: member="bdm::mlnorm::iepdf" ref="6de45ab731143e70a94318df586c36ba" args="" --> |
---|
169 | <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1enorm.html">enorm</a>< sq_T > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#6de45ab731143e70a94318df586c36ba">iepdf</a></td></tr> |
---|
170 | |
---|
171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> that arise by conditioning on <code>rvc</code>. <br></td></tr> |
---|
172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8207ae86d1722102897e139a23e29af8"></a><!-- doxytag: member="bdm::mlnorm::A" ref="8207ae86d1722102897e139a23e29af8" args="" --> |
---|
173 | mat </td><td class="memItemRight" valign="bottom"><b>A</b></td></tr> |
---|
174 | |
---|
175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a019144d414d1737aea331ffe1c3845"></a><!-- doxytag: member="bdm::mlnorm::mu_const" ref="3a019144d414d1737aea331ffe1c3845" args="" --> |
---|
176 | vec </td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr> |
---|
177 | |
---|
178 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dea5ea658d5020c11da91275f592244b"></a><!-- doxytag: member="bdm::mlnorm::_mu" ref="dea5ea658d5020c11da91275f592244b" args="" --> |
---|
179 | vec & </td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr> |
---|
180 | |
---|
181 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mlnorm::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> |
---|
182 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> |
---|
183 | |
---|
184 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> |
---|
185 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mlnorm::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> |
---|
186 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a></td></tr> |
---|
187 | |
---|
188 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
189 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
190 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="1917009347bb410f73bf827df8767b09"></a><!-- doxytag: member="bdm::mlnorm::operator<<" ref="1917009347bb410f73bf827df8767b09" args="(std::ostream &os, mlnorm< sq_M > &ml)" --> |
---|
191 | template<class sq_M > </td></tr> |
---|
192 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">std::ostream & </td><td class="memTemplItemRight" valign="bottom"><b>operator<<</b> (std::ostream &os, <a class="el" href="classbdm_1_1mlnorm.html">mlnorm</a>< sq_M > &ml)</td></tr> |
---|
193 | |
---|
194 | </table> |
---|
195 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
196 | <h3>template<class sq_T><br> |
---|
197 | class bdm::mlnorm< sq_T ></h3> |
---|
198 | |
---|
199 | Normal distributed linear function with linear function of mean value;. |
---|
200 | <p> |
---|
201 | Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_74.png">. <hr><h2>Member Function Documentation</h2> |
---|
202 | <a class="anchor" name="0dafc0196e7e07fd06dc6716e0e18bc2"></a><!-- doxytag: member="bdm::mlnorm::condition" ref="0dafc0196e7e07fd06dc6716e0e18bc2" args="(const vec &cond)" --> |
---|
203 | <div class="memitem"> |
---|
204 | <div class="memproto"> |
---|
205 | <div class="memtemplate"> |
---|
206 | template<class sq_T > </div> |
---|
207 | <table class="memname"> |
---|
208 | <tr> |
---|
209 | <td class="memname">void <a class="el" href="classbdm_1_1mlnorm.html">bdm::mlnorm</a>< sq_T >::condition </td> |
---|
210 | <td>(</td> |
---|
211 | <td class="paramtype">const vec & </td> |
---|
212 | <td class="paramname"> <em>cond</em> </td> |
---|
213 | <td> ) </td> |
---|
214 | <td><code> [inline, virtual]</code></td> |
---|
215 | </tr> |
---|
216 | </table> |
---|
217 | </div> |
---|
218 | <div class="memdoc"> |
---|
219 | |
---|
220 | <p> |
---|
221 | Set value of <code>rvc</code> . Result of this operation is stored in <code><a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a></code> use function <code>_ep</code> to access it. |
---|
222 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">bdm::mpdf</a>.</p> |
---|
223 | |
---|
224 | <p>Reimplemented in <a class="el" href="classbdm_1_1mlstudent.html#efd37560585c8613897f30d3c2f58d0d">bdm::mlstudent</a>.</p> |
---|
225 | |
---|
226 | </div> |
---|
227 | </div><p> |
---|
228 | <a class="anchor" name="8582928555c309a2865f385dd0441fd1"></a><!-- doxytag: member="bdm::mlnorm::from_setting" ref="8582928555c309a2865f385dd0441fd1" args="(const Setting &set)" --> |
---|
229 | <div class="memitem"> |
---|
230 | <div class="memproto"> |
---|
231 | <div class="memtemplate"> |
---|
232 | template<class sq_T> </div> |
---|
233 | <table class="memname"> |
---|
234 | <tr> |
---|
235 | <td class="memname">void <a class="el" href="classbdm_1_1mlnorm.html">bdm::mlnorm</a>< sq_T >::from_setting </td> |
---|
236 | <td>(</td> |
---|
237 | <td class="paramtype">const Setting & </td> |
---|
238 | <td class="paramname"> <em>set</em> </td> |
---|
239 | <td> ) </td> |
---|
240 | <td><code> [inline, virtual]</code></td> |
---|
241 | </tr> |
---|
242 | </table> |
---|
243 | </div> |
---|
244 | <div class="memdoc"> |
---|
245 | |
---|
246 | <p> |
---|
247 | Load from structure with elements: <div class="fragment"><pre class="fragment"> { rv = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> |
---|
248 | <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>= {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable in condition</span> |
---|
249 | <span class="comment">// elements of offsprings</span> |
---|
250 | } |
---|
251 | </pre></div> |
---|
252 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#30a0bceb948e287d497c578e371b1667">bdm::mpdf</a>.</p> |
---|
253 | |
---|
254 | <p>Referenced by <a class="el" href="exp__family_8h_source.html#l00565">bdm::mlnorm< ldmat >::from_setting()</a>.</p> |
---|
255 | |
---|
256 | </div> |
---|
257 | </div><p> |
---|
258 | <a class="anchor" name="b024f2e636e5507c755de4a6df1f1e99"></a><!-- doxytag: member="bdm::mlnorm::samplecond" ref="b024f2e636e5507c755de4a6df1f1e99" args="(const vec &cond)" --> |
---|
259 | <div class="memitem"> |
---|
260 | <div class="memproto"> |
---|
261 | <table class="memname"> |
---|
262 | <tr> |
---|
263 | <td class="memname">vec bdm::mpdf::samplecond </td> |
---|
264 | <td>(</td> |
---|
265 | <td class="paramtype">const vec & </td> |
---|
266 | <td class="paramname"> <em>cond</em> </td> |
---|
267 | <td> ) </td> |
---|
268 | <td><code> [virtual, inherited]</code></td> |
---|
269 | </tr> |
---|
270 | </table> |
---|
271 | </div> |
---|
272 | <div class="memdoc"> |
---|
273 | |
---|
274 | <p> |
---|
275 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">. |
---|
276 | <p> |
---|
277 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
278 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
279 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
280 | </table> |
---|
281 | </dl> |
---|
282 | |
---|
283 | <p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#ee715a8013acf9892f6cb489db595555">bdm::mprod</a>.</p> |
---|
284 | |
---|
285 | <p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p> |
---|
286 | |
---|
287 | <p>Referenced by <a class="el" href="particles_8h_source.html#l00207">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="particles_8cpp_source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="datasources_8cpp_source.html#l00043">bdm::ArxDS::step()</a>.</p> |
---|
288 | |
---|
289 | </div> |
---|
290 | </div><p> |
---|
291 | <a class="anchor" name="6e497d501331057309d2fddf63259d1a"></a><!-- doxytag: member="bdm::mlnorm::samplecond_m" ref="6e497d501331057309d2fddf63259d1a" args="(const vec &cond, int N)" --> |
---|
292 | <div class="memitem"> |
---|
293 | <div class="memproto"> |
---|
294 | <table class="memname"> |
---|
295 | <tr> |
---|
296 | <td class="memname">mat bdm::mpdf::samplecond_m </td> |
---|
297 | <td>(</td> |
---|
298 | <td class="paramtype">const vec & </td> |
---|
299 | <td class="paramname"> <em>cond</em>, </td> |
---|
300 | </tr> |
---|
301 | <tr> |
---|
302 | <td class="paramkey"></td> |
---|
303 | <td></td> |
---|
304 | <td class="paramtype">int </td> |
---|
305 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
306 | </tr> |
---|
307 | <tr> |
---|
308 | <td></td> |
---|
309 | <td>)</td> |
---|
310 | <td></td><td></td><td><code> [virtual, inherited]</code></td> |
---|
311 | </tr> |
---|
312 | </table> |
---|
313 | </div> |
---|
314 | <div class="memdoc"> |
---|
315 | |
---|
316 | <p> |
---|
317 | Returns. |
---|
318 | <p> |
---|
319 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
320 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
321 | <tr><td valign="top"></td><td valign="top"><em>N</em> </td><td>samples from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">. </td></tr> |
---|
322 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
323 | </table> |
---|
324 | </dl> |
---|
325 | |
---|
326 | <p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p> |
---|
327 | |
---|
328 | </div> |
---|
329 | </div><p> |
---|
330 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
331 | <li><a class="el" href="exp__family_8h_source.html">exp_family.h</a></ul> |
---|
332 | </div> |
---|
333 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:07:02 2009 for mixpp by |
---|
334 | <a href="http://www.doxygen.org/index.html"> |
---|
335 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
---|
336 | </body> |
---|
337 | </html> |
---|