1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
---|
5 | <title>mixpp: bdm::eprod Class Reference</title> |
---|
6 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
---|
7 | <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <!-- Generated by Doxygen 1.6.1 --> |
---|
11 | <script type="text/javascript"> |
---|
12 | <!-- |
---|
13 | function changeDisplayState (e){ |
---|
14 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
15 | var button=this.firstChild; |
---|
16 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
17 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
18 | sectionDiv.style.display='block'; |
---|
19 | button.src='open.gif'; |
---|
20 | }else{ |
---|
21 | sectionDiv.style.display='none'; |
---|
22 | button.src='closed.gif'; |
---|
23 | } |
---|
24 | } |
---|
25 | function initDynSections(){ |
---|
26 | var divs=document.getElementsByTagName('div'); |
---|
27 | var sectionCounter=1; |
---|
28 | for(var i=0;i<divs.length-1;i++){ |
---|
29 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
30 | var header=divs[i]; |
---|
31 | var section=divs[i+1]; |
---|
32 | var button=header.firstChild; |
---|
33 | if (button!='IMG'){ |
---|
34 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
35 | button=document.createElement('img'); |
---|
36 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
37 | } |
---|
38 | header.style.cursor='pointer'; |
---|
39 | header.onclick=changeDisplayState; |
---|
40 | header.id='dynheader'+sectionCounter; |
---|
41 | button.src='closed.gif'; |
---|
42 | section.id='dynsection'+sectionCounter; |
---|
43 | section.style.display='none'; |
---|
44 | section.style.marginLeft='14px'; |
---|
45 | sectionCounter++; |
---|
46 | } |
---|
47 | } |
---|
48 | } |
---|
49 | window.onload = initDynSections; |
---|
50 | --> |
---|
51 | </script> |
---|
52 | <div class="navigation" id="top"> |
---|
53 | <div class="tabs"> |
---|
54 | <ul> |
---|
55 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
56 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
57 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
58 | <li><a href="files.html"><span>Files</span></a></li> |
---|
59 | </ul> |
---|
60 | </div> |
---|
61 | <div class="tabs"> |
---|
62 | <ul> |
---|
63 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
64 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
65 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
66 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
67 | </ul> |
---|
68 | </div> |
---|
69 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1eprod.html">eprod</a> |
---|
70 | </div> |
---|
71 | </div> |
---|
72 | <div class="contents"> |
---|
73 | <h1>bdm::eprod Class Reference</h1><!-- doxytag: class="bdm::eprod" --><!-- doxytag: inherits="bdm::epdf" --> |
---|
74 | <p>Product of independent epdfs. For dependent pdfs, use <a class="el" href="classbdm_1_1mprod.html" title="Chain rule decomposition of epdf.">mprod</a>. |
---|
75 | <a href="#_details">More...</a></p> |
---|
76 | |
---|
77 | <p><code>#include <<a class="el" href="emix_8h_source.html">emix.h</a>></code></p> |
---|
78 | |
---|
79 | <p><a href="classbdm_1_1eprod-members.html">List of all members.</a></p> |
---|
80 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
81 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
---|
82 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bd36af548d5c350ebe62599aacf91ba"></a><!-- doxytag: member="bdm::eprod::eprod" ref="a9bd36af548d5c350ebe62599aacf91ba" args="()" --> |
---|
83 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#a9bd36af548d5c350ebe62599aacf91ba">eprod</a> ()</td></tr> |
---|
84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br/></td></tr> |
---|
85 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f0f526ddcd028c5edaecf250ef780f6"></a><!-- doxytag: member="bdm::eprod::set_parameters" ref="a7f0f526ddcd028c5edaecf250ef780f6" args="(const Array< const epdf * > &epdfs0, bool named=true)" --> |
---|
86 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#a7f0f526ddcd028c5edaecf250ef780f6">set_parameters</a> (const Array< const <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > &epdfs0, bool named=true)</td></tr> |
---|
87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set internal. <br/></td></tr> |
---|
88 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d494351e7e385ad3382387c96915d24"></a><!-- doxytag: member="bdm::eprod::mean" ref="a1d494351e7e385ad3382387c96915d24" args="() const " --> |
---|
89 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#a1d494351e7e385ad3382387c96915d24">mean</a> () const </td></tr> |
---|
90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
---|
91 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc53a151f5ac5dfba68d425acc3a5615"></a><!-- doxytag: member="bdm::eprod::variance" ref="acc53a151f5ac5dfba68d425acc3a5615" args="() const " --> |
---|
92 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#acc53a151f5ac5dfba68d425acc3a5615">variance</a> () const </td></tr> |
---|
93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> |
---|
94 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf48debea25d3473bcb71b6a77fac741"></a><!-- doxytag: member="bdm::eprod::sample" ref="aaf48debea25d3473bcb71b6a77fac741" args="() const " --> |
---|
95 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#aaf48debea25d3473bcb71b6a77fac741">sample</a> () const </td></tr> |
---|
96 | <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> |
---|
97 | <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#aa5a91e67d2f74ff2b0b8eecde2fa42e2">evallog</a> (const vec &val) const </td></tr> |
---|
98 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5194b47dd05a5886e0745250b6704953"></a><!-- doxytag: member="bdm::eprod::operator()" ref="a5194b47dd05a5886e0745250b6704953" args="(int i) const " --> |
---|
99 | const <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#a5194b47dd05a5886e0745250b6704953">operator()</a> (int i) const </td></tr> |
---|
100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
---|
101 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a708b37971aab3667f20e325c358632cf"></a><!-- doxytag: member="bdm::eprod::~eprod" ref="a708b37971aab3667f20e325c358632cf" args="()" --> |
---|
102 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#a708b37971aab3667f20e325c358632cf">~eprod</a> ()</td></tr> |
---|
103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br/></td></tr> |
---|
104 | <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> |
---|
105 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eprod::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
106 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
---|
108 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::eprod::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
109 | 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> |
---|
110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
---|
111 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eprod::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
112 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
---|
114 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
115 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> Construction of each <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> should support two types of constructors: </p> |
---|
116 | <ul> |
---|
117 | <li>empty constructor, </li> |
---|
118 | <li>copy constructor,</li> |
---|
119 | </ul> |
---|
120 | <p>The following constructors should be supported for convenience: </p> |
---|
121 | <ul> |
---|
122 | <li>constructor followed by calling <code><a class="el" href="classbdm_1_1eprod.html#a7f0f526ddcd028c5edaecf250ef780f6" title="Set internal.">set_parameters()</a></code> </li> |
---|
123 | <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> |
---|
124 | </ul> |
---|
125 | <p>All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code><a class="el" href="classbdm_1_1eprod.html#a7f0f526ddcd028c5edaecf250ef780f6" title="Set internal.">set_parameters()</a></code>. This way references can be initialized in constructors. </p> |
---|
126 | <br/><br/></div></td></tr> |
---|
127 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::eprod::set_parameters" ref="a840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> |
---|
128 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
129 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
130 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> |
---|
131 | <br/><br/></div></td></tr> |
---|
132 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::eprod::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
133 | 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> |
---|
134 | <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> |
---|
135 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::eprod::evallog_m" ref="ad08b68a5abd461f1b6519597e344caf8" args="(const mat &Val) const " --> |
---|
136 | 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> |
---|
137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
---|
138 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::eprod::evallog_m" ref="a9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> |
---|
139 | 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> |
---|
140 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
---|
141 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::eprod::condition" ref="a1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &rv) const " --> |
---|
142 | 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> |
---|
143 | <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> |
---|
144 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::eprod::marginal" ref="aa84b05f5293cab2aeb4e07faffa60906" args="(const RV &rv) const " --> |
---|
145 | 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> |
---|
146 | <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> |
---|
147 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::eprod::qbounds" ref="a0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
---|
148 | 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> |
---|
149 | <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> |
---|
150 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
151 | <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> |
---|
152 | <br/><br/></div></td></tr> |
---|
153 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::eprod::set_rv" ref="af423e28448dbb69ef4905295ec8de8ff" args="(const RV &rv0)" --> |
---|
154 | 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> |
---|
155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br/></td></tr> |
---|
156 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::eprod::isnamed" ref="ac4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
157 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
158 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br/></td></tr> |
---|
159 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::eprod::_rv" ref="aa4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
160 | 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> |
---|
161 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br/></td></tr> |
---|
162 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
163 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> |
---|
164 | <br/><br/></div></td></tr> |
---|
165 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eprod::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
166 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br/></td></tr> |
---|
168 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
---|
169 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa0b0981730f0a8339b9ff3e29d78391"></a><!-- doxytag: member="bdm::eprod::epdfs" ref="afa0b0981730f0a8339b9ff3e29d78391" args="" --> |
---|
170 | Array< const <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#afa0b0981730f0a8339b9ff3e29d78391">epdfs</a></td></tr> |
---|
171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Components (epdfs). <br/></td></tr> |
---|
172 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6b5a9be71a644f6009e7beda6c762a43"></a><!-- doxytag: member="bdm::eprod::dls" ref="a6b5a9be71a644f6009e7beda6c762a43" args="" --> |
---|
173 | Array< <a class="el" href="classbdm_1_1datalink.html">datalink</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eprod.html#a6b5a9be71a644f6009e7beda6c762a43">dls</a></td></tr> |
---|
174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array of indeces. <br/></td></tr> |
---|
175 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eprod::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
176 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
177 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br/></td></tr> |
---|
178 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eprod::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
179 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
---|
180 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br/></td></tr> |
---|
181 | </table> |
---|
182 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
---|
183 | <p>Product of independent epdfs. For dependent pdfs, use <a class="el" href="classbdm_1_1mprod.html" title="Chain rule decomposition of epdf.">mprod</a>. </p> |
---|
184 | <hr/><h2>Member Function Documentation</h2> |
---|
185 | <a class="anchor" id="aa5a91e67d2f74ff2b0b8eecde2fa42e2"></a><!-- doxytag: member="bdm::eprod::evallog" ref="aa5a91e67d2f74ff2b0b8eecde2fa42e2" args="(const vec &val) const " --> |
---|
186 | <div class="memitem"> |
---|
187 | <div class="memproto"> |
---|
188 | <table class="memname"> |
---|
189 | <tr> |
---|
190 | <td class="memname">double bdm::eprod::evallog </td> |
---|
191 | <td>(</td> |
---|
192 | <td class="paramtype">const vec & </td> |
---|
193 | <td class="paramname"> <em>val</em></td> |
---|
194 | <td> ) </td> |
---|
195 | <td> const<code> [inline, virtual]</code></td> |
---|
196 | </tr> |
---|
197 | </table> |
---|
198 | </div> |
---|
199 | <div class="memdoc"> |
---|
200 | <p>Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity </p> |
---|
201 | |
---|
202 | <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#adeab266d63c236c277538867d5c3f249">bdm::epdf</a>.</p> |
---|
203 | |
---|
204 | <p>References <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="emix_8h_source.html#l00376">dls</a>, and <a class="el" href="emix_8h_source.html#l00374">epdfs</a>.</p> |
---|
205 | |
---|
206 | </div> |
---|
207 | </div> |
---|
208 | <a class="anchor" id="afa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::eprod::from_setting" ref="afa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
---|
209 | <div class="memitem"> |
---|
210 | <div class="memproto"> |
---|
211 | <table class="memname"> |
---|
212 | <tr> |
---|
213 | <td class="memname">void bdm::epdf::from_setting </td> |
---|
214 | <td>(</td> |
---|
215 | <td class="paramtype">const Setting & </td> |
---|
216 | <td class="paramname"> <em>set</em></td> |
---|
217 | <td> ) </td> |
---|
218 | <td><code> [inline, virtual, inherited]</code></td> |
---|
219 | </tr> |
---|
220 | </table> |
---|
221 | </div> |
---|
222 | <div class="memdoc"> |
---|
223 | <p>Load from structure with elements: </p> |
---|
224 | <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> |
---|
225 | <span class="comment">// elements of offsprings</span> |
---|
226 | } |
---|
227 | </pre></div> |
---|
228 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
229 | |
---|
230 | <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> |
---|
231 | |
---|
232 | <p>References <a class="el" href="bdmbase_8h_source.html#l00357">bdm::epdf::set_rv()</a>.</p> |
---|
233 | |
---|
234 | </div> |
---|
235 | </div> |
---|
236 | <hr/>The documentation for this class was generated from the following file:<ul> |
---|
237 | <li><a class="el" href="emix_8h_source.html">emix.h</a></li> |
---|
238 | </ul> |
---|
239 | </div> |
---|
240 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 30 22:10:51 2009 for mixpp by |
---|
241 | <a href="http://www.doxygen.org/index.html"> |
---|
242 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
---|
243 | </body> |
---|
244 | </html> |
---|