[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::eEmp 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> |
---|
[398] | 7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
[271] | 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> |
---|
[259] | 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
[271] | 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[290] | 55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 57 | </ul> |
---|
| 58 | </div> |
---|
| 59 | <div class="tabs"> |
---|
| 60 | <ul> |
---|
| 61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 65 | </ul> |
---|
| 66 | </div> |
---|
[271] | 67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1eEmp.html">eEmp</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[290] | 71 | <h1>bdm::eEmp Class Reference</h1><!-- doxytag: class="bdm::eEmp" --><!-- doxytag: inherits="bdm::epdf" -->Weighted empirical density. |
---|
| 72 | <a href="#_details">More...</a> |
---|
[259] | 73 | <p> |
---|
[397] | 74 | <code>#include <<a class="el" href="exp__family_8h-source.html">exp_family.h</a>></code> |
---|
[290] | 75 | <p> |
---|
[259] | 76 | |
---|
| 77 | <p> |
---|
[290] | 78 | <a href="classbdm_1_1eEmp-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 79 | <tr><td></td></tr> |
---|
| 80 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[287] | 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7cfd383180b486fe4526bdf0179350c0"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="7cfd383180b486fe4526bdf0179350c0" args="(const vec &w0, const epdf *pdf0)" --> |
---|
| 82 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#7cfd383180b486fe4526bdf0179350c0">set_statistics</a> (const vec &w0, const <a class="el" href="classbdm_1_1epdf.html">epdf</a> *pdf0)</td></tr> |
---|
[259] | 83 | |
---|
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br></td></tr> |
---|
[287] | 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cef74aa5f87d10d440b9b1e8bc78c1e7"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="cef74aa5f87d10d440b9b1e8bc78c1e7" args="(const epdf *pdf0, int n)" --> |
---|
| 86 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#cef74aa5f87d10d440b9b1e8bc78c1e7">set_statistics</a> (const <a class="el" href="classbdm_1_1epdf.html">epdf</a> *pdf0, int <a class="el" href="classbdm_1_1eEmp.html#9798006271ca77629855113f1283a031">n</a>)</td></tr> |
---|
| 87 | |
---|
| 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br></td></tr> |
---|
[259] | 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b62d802b8ef39f7c4dcbeb366c90951a"></a><!-- doxytag: member="bdm::eEmp::set_samples" ref="b62d802b8ef39f7c4dcbeb366c90951a" args="(const epdf *pdf0)" --> |
---|
| 90 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b62d802b8ef39f7c4dcbeb366c90951a">set_samples</a> (const <a class="el" href="classbdm_1_1epdf.html">epdf</a> *pdf0)</td></tr> |
---|
| 91 | |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br></td></tr> |
---|
[287] | 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c74c281d652356c19b6b079e42ca7ef1"></a><!-- doxytag: member="bdm::eEmp::set_parameters" ref="c74c281d652356c19b6b079e42ca7ef1" args="(int n0, bool copy=true)" --> |
---|
| 94 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#c74c281d652356c19b6b079e42ca7ef1">set_parameters</a> (int n0, bool copy=true)</td></tr> |
---|
[259] | 95 | |
---|
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br></td></tr> |
---|
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d7f83cc0415cd44ae7cc8b4bdad93aef"></a><!-- doxytag: member="bdm::eEmp::_w" ref="d7f83cc0415cd44ae7cc8b4bdad93aef" args="()" --> |
---|
| 98 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#d7f83cc0415cd44ae7cc8b4bdad93aef">_w</a> ()</td></tr> |
---|
| 99 | |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b7d7106f486e3fad38590914a693d714"></a><!-- doxytag: member="bdm::eEmp::_w" ref="b7d7106f486e3fad38590914a693d714" args="() const " --> |
---|
| 102 | const vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b7d7106f486e3fad38590914a693d714">_w</a> () const </td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c24966b0aaeb767bc8a6b4fd60931be2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="c24966b0aaeb767bc8a6b4fd60931be2" args="()" --> |
---|
[354] | 106 | Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#c24966b0aaeb767bc8a6b4fd60931be2">_samples</a> ()</td></tr> |
---|
[259] | 107 | |
---|
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b59af0efdb009d98ea8ebfa965e74ae2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="b59af0efdb009d98ea8ebfa965e74ae2" args="() const " --> |
---|
[354] | 110 | const Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b59af0efdb009d98ea8ebfa965e74ae2">_samples</a> () const </td></tr> |
---|
[259] | 111 | |
---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f06ce255de5dbb2313f52ee51f82ba3d"></a><!-- doxytag: member="bdm::eEmp::resample" ref="f06ce255de5dbb2313f52ee51f82ba3d" args="(RESAMPLING_METHOD method=SYSTEMATIC)" --> |
---|
[271] | 114 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#f06ce255de5dbb2313f52ee51f82ba3d">resample</a> (RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
---|
[259] | 115 | |
---|
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Function performs resampling, i.e. removal of low-weight samples and duplication of high-weight samples such that the new samples represent the same density. <br></td></tr> |
---|
| 117 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97f1e07b5ae6eebc91c7365f0f88d270"></a><!-- doxytag: member="bdm::eEmp::sample" ref="97f1e07b5ae6eebc91c7365f0f88d270" args="() const " --> |
---|
| 118 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#97f1e07b5ae6eebc91c7365f0f88d270">sample</a> () const </td></tr> |
---|
| 119 | |
---|
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemneted <br></td></tr> |
---|
| 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01654c014d3aa068f8d4ecba4be86d09"></a><!-- doxytag: member="bdm::eEmp::evallog" ref="01654c014d3aa068f8d4ecba4be86d09" args="(const vec &val) const " --> |
---|
| 122 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#01654c014d3aa068f8d4ecba4be86d09">evallog</a> (const vec &val) const </td></tr> |
---|
| 123 | |
---|
| 124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemneted <br></td></tr> |
---|
| 125 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bbfcb4f868c7381298c281a256d8c4b9"></a><!-- doxytag: member="bdm::eEmp::mean" ref="bbfcb4f868c7381298c281a256d8c4b9" args="() const " --> |
---|
| 126 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#bbfcb4f868c7381298c281a256d8c4b9">mean</a> () const </td></tr> |
---|
| 127 | |
---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
| 129 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e9ebf467ede737cb6a3621d7fd3c87"></a><!-- doxytag: member="bdm::eEmp::variance" ref="05e9ebf467ede737cb6a3621d7fd3c87" args="() const " --> |
---|
| 130 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#05e9ebf467ede737cb6a3621d7fd3c87">variance</a> () const </td></tr> |
---|
| 131 | |
---|
| 132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
---|
[287] | 133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1c9df656144edf79ba2d885613f661f"></a><!-- doxytag: member="bdm::eEmp::qbounds" ref="b1c9df656144edf79ba2d885613f661f" args="(vec &lb, vec &ub, double perc=0.95) const " --> |
---|
| 134 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b1c9df656144edf79ba2d885613f661f">qbounds</a> (vec &lb, vec &ub, double perc=0.95) const </td></tr> |
---|
| 135 | |
---|
| 136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">For this class, qbounds are minimum and maximum value of the population! <br></td></tr> |
---|
[396] | 137 | <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> |
---|
[353] | 138 | |
---|
[396] | 139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eEmp::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 140 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
| 141 | |
---|
[353] | 142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[396] | 143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::eEmp::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 144 | 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> |
---|
[353] | 145 | |
---|
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[396] | 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eEmp::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 148 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 149 | |
---|
| 150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[271] | 151 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dc232a73b38c9f9688bc4f981eaa0312"></a><!-- doxytag: member="bdm::eEmp::eEmp" ref="dc232a73b38c9f9688bc4f981eaa0312" args="()" --> |
---|
| 153 | </td><td class="memItemRight" valign="bottom"><b>eEmp</b> ()</td></tr> |
---|
| 154 | |
---|
| 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3daf6363455af099921715e1233c076"></a><!-- doxytag: member="bdm::eEmp::eEmp" ref="a3daf6363455af099921715e1233c076" args="(const eEmp &e)" --> |
---|
[385] | 156 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a3daf6363455af099921715e1233c076">eEmp</a> (const <a class="el" href="classbdm_1_1eEmp.html">eEmp</a> &e)</td></tr> |
---|
[271] | 157 | |
---|
[385] | 158 | <tr><td class="mdescLeft"> </td><td class="mdescRight">copy constructor <br></td></tr> |
---|
[271] | 159 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 160 | <tr><td colspan="2"><div class="groupText">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: <ul> |
---|
| 161 | <li>empty constructor, </li> |
---|
| 162 | <li>copy constructor,</li> |
---|
| 163 | </ul> |
---|
| 164 | The following constructors should be supported for convenience: <ul> |
---|
[287] | 165 | <li>constructor followed by calling <code><a class="el" href="classbdm_1_1eEmp.html#c74c281d652356c19b6b079e42ca7ef1" title="Set sample.">set_parameters()</a></code> </li> |
---|
[271] | 166 | <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> |
---|
| 167 | </ul> |
---|
[287] | 168 | All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code><a class="el" href="classbdm_1_1eEmp.html#c74c281d652356c19b6b079e42ca7ef1" title="Set sample.">set_parameters()</a></code>. This way references can be initialized in constructors. <br><br></div></td></tr> |
---|
[271] | 169 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::eEmp::set_parameters" ref="840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> |
---|
| 170 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
| 171 | |
---|
[270] | 172 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
[259] | 173 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::eEmp::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
| 174 | 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> |
---|
| 175 | |
---|
[397] | 176 | <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> |
---|
[259] | 177 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34956d4dd3176eeb5937cf48a1546b62"></a><!-- doxytag: member="bdm::eEmp::evallog_m" ref="34956d4dd3176eeb5937cf48a1546b62" args="(const mat &Val) const " --> |
---|
| 178 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#34956d4dd3176eeb5937cf48a1546b62">evallog_m</a> (const mat &Val) const </td></tr> |
---|
| 179 | |
---|
| 180 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[396] | 181 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="512dbf057299e871fbc61ed55acb5888"></a><!-- doxytag: member="bdm::eEmp::evallog_m" ref="512dbf057299e871fbc61ed55acb5888" args="(const Array< vec > &Avec) const " --> |
---|
| 182 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#512dbf057299e871fbc61ed55acb5888">evallog_m</a> (const Array< vec > &Avec) const </td></tr> |
---|
| 183 | |
---|
| 184 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[259] | 185 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e584eac5579c1b6384947ecf66166c77"></a><!-- doxytag: member="bdm::eEmp::condition" ref="e584eac5579c1b6384947ecf66166c77" args="(const RV &rv) const " --> |
---|
| 186 | virtual <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#e584eac5579c1b6384947ecf66166c77">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> |
---|
| 187 | |
---|
| 188 | <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> |
---|
| 189 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fb2ece54f720b62ad325e61214fa0a1"></a><!-- doxytag: member="bdm::eEmp::marginal" ref="3fb2ece54f720b62ad325e61214fa0a1" args="(const RV &rv) const " --> |
---|
| 190 | virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#3fb2ece54f720b62ad325e61214fa0a1">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> |
---|
| 191 | |
---|
| 192 | <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> |
---|
[270] | 193 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
| 194 | <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> |
---|
| 195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::eEmp::set_rv" ref="f423e28448dbb69ef4905295ec8de8ff" args="(const RV &rv0)" --> |
---|
| 196 | 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> |
---|
| 197 | |
---|
| 198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
---|
| 199 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::eEmp::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
| 200 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
| 201 | |
---|
| 202 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
---|
[259] | 203 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::eEmp::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
| 204 | 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> |
---|
| 205 | |
---|
[270] | 206 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
---|
| 207 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
[271] | 208 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eEmp::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
| 209 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
[259] | 210 | |
---|
[270] | 211 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
---|
[259] | 212 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 213 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9798006271ca77629855113f1283a031"></a><!-- doxytag: member="bdm::eEmp::n" ref="9798006271ca77629855113f1283a031" args="" --> |
---|
| 214 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#9798006271ca77629855113f1283a031">n</a></td></tr> |
---|
| 215 | |
---|
| 216 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of particles. <br></td></tr> |
---|
| 217 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9d39241aab7c4bbeb07c6d516421c67d"></a><!-- doxytag: member="bdm::eEmp::w" ref="9d39241aab7c4bbeb07c6d516421c67d" args="" --> |
---|
| 218 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#9d39241aab7c4bbeb07c6d516421c67d">w</a></td></tr> |
---|
| 219 | |
---|
[397] | 220 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sample weights <img class="formulaInl" alt="$w$" src="form_95.png">. <br></td></tr> |
---|
[259] | 221 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73d819553a0f268b055a087d2d4486f3"></a><!-- doxytag: member="bdm::eEmp::samples" ref="73d819553a0f268b055a087d2d4486f3" args="" --> |
---|
[354] | 222 | Array< vec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#73d819553a0f268b055a087d2d4486f3">samples</a></td></tr> |
---|
[259] | 223 | |
---|
[397] | 224 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Samples <img class="formulaInl" alt="$x^{(i)}, i=1..n$" src="form_96.png">. <br></td></tr> |
---|
[270] | 225 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eEmp::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
| 226 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
| 227 | |
---|
| 228 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
---|
[259] | 229 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eEmp::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
| 230 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
---|
| 231 | |
---|
[270] | 232 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
---|
[259] | 233 | </table> |
---|
[290] | 234 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 235 | Weighted empirical density. |
---|
| 236 | <p> |
---|
[396] | 237 | Used e.g. in particle filters. <hr><h2>Member Function Documentation</h2> |
---|
| 238 | <a class="anchor" name="fa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::eEmp::from_setting" ref="fa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
---|
| 239 | <div class="memitem"> |
---|
| 240 | <div class="memproto"> |
---|
| 241 | <table class="memname"> |
---|
| 242 | <tr> |
---|
| 243 | <td class="memname">void bdm::epdf::from_setting </td> |
---|
| 244 | <td>(</td> |
---|
| 245 | <td class="paramtype">const Setting & </td> |
---|
| 246 | <td class="paramname"> <em>set</em> </td> |
---|
| 247 | <td> ) </td> |
---|
| 248 | <td><code> [inline, virtual, inherited]</code></td> |
---|
| 249 | </tr> |
---|
| 250 | </table> |
---|
[259] | 251 | </div> |
---|
[396] | 252 | <div class="memdoc"> |
---|
| 253 | |
---|
| 254 | <p> |
---|
| 255 | Load from structure with elements: <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" 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> |
---|
| 256 | <span class="comment">// elements of offsprings</span> |
---|
| 257 | } |
---|
| 258 | </pre></div> |
---|
| 259 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
| 260 | |
---|
| 261 | <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_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> |
---|
| 262 | |
---|
[397] | 263 | <p>References <a class="el" href="bdmbase_8h-source.html#l00307">bdm::epdf::set_rv()</a>.</p> |
---|
[396] | 264 | |
---|
| 265 | </div> |
---|
| 266 | </div><p> |
---|
| 267 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[397] | 268 | <li><a class="el" href="exp__family_8h-source.html">exp_family.h</a><li>exp_family.cpp</ul> |
---|
| 269 | </div> |
---|
[401] | 270 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:57 2009 for mixpp by |
---|
[259] | 271 | <a href="http://www.doxygen.org/index.html"> |
---|
[398] | 272 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 273 | </body> |
---|
| 274 | </html> |
---|