73 | | <h1>bdm::eEmp Class Reference</h1><!-- doxytag: class="bdm::eEmp" --><!-- doxytag: inherits="bdm::epdf" --> |
74 | | <p>Weighted empirical density. |
75 | | <a href="#_details">More...</a></p> |
76 | | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
77 | | <p>Weighted empirical density. </p> |
78 | | <p>Used e.g. in particle filters. </p> |
79 | | |
80 | | <p><code>#include <<a class="el" href="exp__family_8h_source.html">exp_family.h</a>></code></p> |
81 | | |
82 | | <p><a href="classbdm_1_1eEmp-members.html">List of all members.</a></p> |
83 | | <table border="0" cellpadding="0" cellspacing="0"> |
84 | | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
85 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7f8f98310c1de51bd5c8a1c87528f72"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="ae7f8f98310c1de51bd5c8a1c87528f72" args="(const vec &w0, const epdf &pdf0)" --> |
86 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ae7f8f98310c1de51bd5c8a1c87528f72">set_statistics</a> (const vec &w0, const <a class="el" href="classbdm_1_1epdf.html">epdf</a> &pdf0)</td></tr> |
87 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br/></td></tr> |
88 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f7e6ba7183972e3c7ae399613861b95"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="a4f7e6ba7183972e3c7ae399613861b95" args="(const epdf &pdf0, int n)" --> |
89 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a4f7e6ba7183972e3c7ae399613861b95">set_statistics</a> (const <a class="el" href="classbdm_1_1epdf.html">epdf</a> &pdf0, int <a class="el" href="classbdm_1_1eEmp.html#a9798006271ca77629855113f1283a031">n</a>)</td></tr> |
90 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br/></td></tr> |
91 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab62d802b8ef39f7c4dcbeb366c90951a"></a><!-- doxytag: member="bdm::eEmp::set_samples" ref="ab62d802b8ef39f7c4dcbeb366c90951a" args="(const epdf *pdf0)" --> |
92 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab62d802b8ef39f7c4dcbeb366c90951a">set_samples</a> (const <a class="el" href="classbdm_1_1epdf.html">epdf</a> *pdf0)</td></tr> |
93 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br/></td></tr> |
94 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac74c281d652356c19b6b079e42ca7ef1"></a><!-- doxytag: member="bdm::eEmp::set_parameters" ref="ac74c281d652356c19b6b079e42ca7ef1" args="(int n0, bool copy=true)" --> |
95 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ac74c281d652356c19b6b079e42ca7ef1">set_parameters</a> (int n0, bool copy=true)</td></tr> |
96 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br/></td></tr> |
97 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37937007a3a676cf653a7de412674481"></a><!-- doxytag: member="bdm::eEmp::set_parameters" ref="a37937007a3a676cf653a7de412674481" args="(const Array< vec > &Av)" --> |
98 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a37937007a3a676cf653a7de412674481">set_parameters</a> (const Array< vec > &Av)</td></tr> |
99 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples. <br/></td></tr> |
100 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad7f83cc0415cd44ae7cc8b4bdad93aef"></a><!-- doxytag: member="bdm::eEmp::_w" ref="ad7f83cc0415cd44ae7cc8b4bdad93aef" args="()" --> |
101 | | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ad7f83cc0415cd44ae7cc8b4bdad93aef">_w</a> ()</td></tr> |
102 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br/></td></tr> |
103 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7d7106f486e3fad38590914a693d714"></a><!-- doxytag: member="bdm::eEmp::_w" ref="ab7d7106f486e3fad38590914a693d714" args="() const " --> |
104 | | const vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab7d7106f486e3fad38590914a693d714">_w</a> () const </td></tr> |
105 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br/></td></tr> |
106 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac24966b0aaeb767bc8a6b4fd60931be2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="ac24966b0aaeb767bc8a6b4fd60931be2" args="()" --> |
107 | | Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ac24966b0aaeb767bc8a6b4fd60931be2">_samples</a> ()</td></tr> |
108 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
109 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace568a16cdb4e4cb871ef62d7145f1a5"></a><!-- doxytag: member="bdm::eEmp::_sample" ref="ace568a16cdb4e4cb871ef62d7145f1a5" args="(int i) const " --> |
110 | | const vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ace568a16cdb4e4cb871ef62d7145f1a5">_sample</a> (int i) const </td></tr> |
111 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
112 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab59af0efdb009d98ea8ebfa965e74ae2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="ab59af0efdb009d98ea8ebfa965e74ae2" args="() const " --> |
113 | | const Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab59af0efdb009d98ea8ebfa965e74ae2">_samples</a> () const </td></tr> |
114 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
115 | | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#af59ed50888a31057ac2038d80f607d3d">resample</a> (ivec &index, RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
116 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4a150d0a62c08db76d1bc5256909f93"></a><!-- doxytag: member="bdm::eEmp::resample" ref="ab4a150d0a62c08db76d1bc5256909f93" args="(RESAMPLING_METHOD method=SYSTEMATIC)" --> |
117 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab4a150d0a62c08db76d1bc5256909f93">resample</a> (RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
118 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Resampling without returning index of new particles. <br/></td></tr> |
119 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97f1e07b5ae6eebc91c7365f0f88d270"></a><!-- doxytag: member="bdm::eEmp::sample" ref="a97f1e07b5ae6eebc91c7365f0f88d270" args="() const " --> |
120 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a97f1e07b5ae6eebc91c7365f0f88d270">sample</a> () const </td></tr> |
121 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br/></td></tr> |
122 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01654c014d3aa068f8d4ecba4be86d09"></a><!-- doxytag: member="bdm::eEmp::evallog" ref="a01654c014d3aa068f8d4ecba4be86d09" args="(const vec &val) const " --> |
123 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a01654c014d3aa068f8d4ecba4be86d09">evallog</a> (const vec &val) const </td></tr> |
124 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br/></td></tr> |
125 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abbfcb4f868c7381298c281a256d8c4b9"></a><!-- doxytag: member="bdm::eEmp::mean" ref="abbfcb4f868c7381298c281a256d8c4b9" args="() const " --> |
126 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#abbfcb4f868c7381298c281a256d8c4b9">mean</a> () const </td></tr> |
127 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
128 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05e9ebf467ede737cb6a3621d7fd3c87"></a><!-- doxytag: member="bdm::eEmp::variance" ref="a05e9ebf467ede737cb6a3621d7fd3c87" args="() const " --> |
129 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a05e9ebf467ede737cb6a3621d7fd3c87">variance</a> () const </td></tr> |
130 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> |
131 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab1c9df656144edf79ba2d885613f661f"></a><!-- doxytag: member="bdm::eEmp::qbounds" ref="ab1c9df656144edf79ba2d885613f661f" args="(vec &lb, vec &ub, double perc=0.95) const " --> |
132 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab1c9df656144edf79ba2d885613f661f">qbounds</a> (vec &lb, vec &ub, double perc=0.95) const </td></tr> |
133 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">For this class, qbounds are minimum and maximum value of the population! <br/></td></tr> |
134 | | <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> |
135 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Load from structure with elements:. <a href="#afa9efc98a065b31c630fe18cc418f725"></a><br/></td></tr> |
136 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eEmp::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
137 | | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
138 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
139 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::eEmp::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
140 | | 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> |
141 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
142 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eEmp::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
143 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
144 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
| 70 | <h1>bdm::eEmp Class Reference</h1><!-- doxytag: class="bdm::eEmp" --><!-- doxytag: inherits="bdm::epdf" -->Weighted empirical density. |
| 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_1eEmp-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"><a class="anchor" name="e7f8f98310c1de51bd5c8a1c87528f72"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="e7f8f98310c1de51bd5c8a1c87528f72" args="(const vec &w0, const epdf &pdf0)" --> |
| 81 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#e7f8f98310c1de51bd5c8a1c87528f72">set_statistics</a> (const vec &w0, const <a class="el" href="classbdm_1_1epdf.html">epdf</a> &pdf0)</td></tr> |
| 82 | |
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br></td></tr> |
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4f7e6ba7183972e3c7ae399613861b95"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="4f7e6ba7183972e3c7ae399613861b95" args="(const epdf &pdf0, int n)" --> |
| 85 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#4f7e6ba7183972e3c7ae399613861b95">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> |
| 86 | |
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br></td></tr> |
| 88 | <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)" --> |
| 89 | 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> |
| 90 | |
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br></td></tr> |
| 92 | <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)" --> |
| 93 | 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> |
| 94 | |
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br></td></tr> |
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="37937007a3a676cf653a7de412674481"></a><!-- doxytag: member="bdm::eEmp::set_parameters" ref="37937007a3a676cf653a7de412674481" args="(const Array< vec > &Av)" --> |
| 97 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#37937007a3a676cf653a7de412674481">set_parameters</a> (const Array< vec > &Av)</td></tr> |
| 98 | |
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples. <br></td></tr> |
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d7f83cc0415cd44ae7cc8b4bdad93aef"></a><!-- doxytag: member="bdm::eEmp::_w" ref="d7f83cc0415cd44ae7cc8b4bdad93aef" args="()" --> |
| 101 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#d7f83cc0415cd44ae7cc8b4bdad93aef">_w</a> ()</td></tr> |
| 102 | |
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br></td></tr> |
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b7d7106f486e3fad38590914a693d714"></a><!-- doxytag: member="bdm::eEmp::_w" ref="b7d7106f486e3fad38590914a693d714" args="() const " --> |
| 105 | const vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b7d7106f486e3fad38590914a693d714">_w</a> () const </td></tr> |
| 106 | |
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br></td></tr> |
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c24966b0aaeb767bc8a6b4fd60931be2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="c24966b0aaeb767bc8a6b4fd60931be2" args="()" --> |
| 109 | Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#c24966b0aaeb767bc8a6b4fd60931be2">_samples</a> ()</td></tr> |
| 110 | |
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce568a16cdb4e4cb871ef62d7145f1a5"></a><!-- doxytag: member="bdm::eEmp::_sample" ref="ce568a16cdb4e4cb871ef62d7145f1a5" args="(int i) const " --> |
| 113 | const vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ce568a16cdb4e4cb871ef62d7145f1a5">_sample</a> (int i) const </td></tr> |
| 114 | |
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b59af0efdb009d98ea8ebfa965e74ae2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="b59af0efdb009d98ea8ebfa965e74ae2" args="() const " --> |
| 117 | const Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b59af0efdb009d98ea8ebfa965e74ae2">_samples</a> () const </td></tr> |
| 118 | |
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 120 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#f59ed50888a31057ac2038d80f607d3d">resample</a> (ivec &index, RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
| 121 | |
| 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4a150d0a62c08db76d1bc5256909f93"></a><!-- doxytag: member="bdm::eEmp::resample" ref="b4a150d0a62c08db76d1bc5256909f93" args="(RESAMPLING_METHOD method=SYSTEMATIC)" --> |
| 123 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b4a150d0a62c08db76d1bc5256909f93">resample</a> (RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
| 124 | |
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Resampling without returning index of new particles. <br></td></tr> |
| 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97f1e07b5ae6eebc91c7365f0f88d270"></a><!-- doxytag: member="bdm::eEmp::sample" ref="97f1e07b5ae6eebc91c7365f0f88d270" args="() const " --> |
| 127 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#97f1e07b5ae6eebc91c7365f0f88d270">sample</a> () const </td></tr> |
| 128 | |
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br></td></tr> |
| 130 | <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 " --> |
| 131 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#01654c014d3aa068f8d4ecba4be86d09">evallog</a> (const vec &val) const </td></tr> |
| 132 | |
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br></td></tr> |
| 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bbfcb4f868c7381298c281a256d8c4b9"></a><!-- doxytag: member="bdm::eEmp::mean" ref="bbfcb4f868c7381298c281a256d8c4b9" args="() const " --> |
| 135 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#bbfcb4f868c7381298c281a256d8c4b9">mean</a> () const </td></tr> |
| 136 | |
| 137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
| 138 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e9ebf467ede737cb6a3621d7fd3c87"></a><!-- doxytag: member="bdm::eEmp::variance" ref="05e9ebf467ede737cb6a3621d7fd3c87" args="() const " --> |
| 139 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#05e9ebf467ede737cb6a3621d7fd3c87">variance</a> () const </td></tr> |
| 140 | |
| 141 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
| 142 | <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 " --> |
| 143 | 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> |
| 144 | |
| 145 | <tr><td class="mdescLeft"> </td><td class="mdescRight">For this class, qbounds are minimum and maximum value of the population! <br></td></tr> |
| 146 | <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> |
| 147 | |
| 148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Load from structure with elements:. <a href="#fa9efc98a065b31c630fe18cc418f725"></a><br></td></tr> |
| 149 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eEmp::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
| 150 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
| 151 | |
| 152 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
| 153 | <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 " --> |
| 154 | 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> |
| 155 | |
| 156 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
| 157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eEmp::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
| 158 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
| 159 | |
| 160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
169 | | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> |
170 | | <br/><br/></div></td></tr> |
171 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::eEmp::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
172 | | 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> |
173 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png"/>. <br/></td></tr> |
174 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::eEmp::evallog_m" ref="ad08b68a5abd461f1b6519597e344caf8" args="(const mat &Val) const " --> |
175 | | 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> |
176 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
177 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::eEmp::evallog_m" ref="a9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> |
178 | | 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> |
179 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
180 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::eEmp::condition" ref="a1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &rv) const " --> |
181 | | 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> |
182 | | <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> |
183 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::eEmp::marginal" ref="aa84b05f5293cab2aeb4e07faffa60906" args="(const RV &rv) const " --> |
184 | | 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> |
185 | | <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> |
| 183 | <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 " --> |
| 184 | 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> |
| 185 | |
| 186 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png">. <br></td></tr> |
| 187 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::eEmp::evallog_m" ref="d08b68a5abd461f1b6519597e344caf8" args="(const mat &Val) const " --> |
| 188 | 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> |
| 189 | |
| 190 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
| 191 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::eEmp::evallog_m" ref="9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> |
| 192 | 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> |
| 193 | |
| 194 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
| 195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::eEmp::condition" ref="1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &rv) const " --> |
| 196 | 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> |
| 197 | |
| 198 | <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> |
| 199 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::eEmp::marginal" ref="a84b05f5293cab2aeb4e07faffa60906" args="(const RV &rv) const " --> |
| 200 | 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> |
| 201 | |
| 202 | <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> |
199 | | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> |
200 | | <br/><br/></div></td></tr> |
201 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eEmp::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
202 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
203 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br/></td></tr> |
204 | | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
205 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9798006271ca77629855113f1283a031"></a><!-- doxytag: member="bdm::eEmp::n" ref="a9798006271ca77629855113f1283a031" args="" --> |
206 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a9798006271ca77629855113f1283a031">n</a></td></tr> |
207 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of particles. <br/></td></tr> |
208 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d39241aab7c4bbeb07c6d516421c67d"></a><!-- doxytag: member="bdm::eEmp::w" ref="a9d39241aab7c4bbeb07c6d516421c67d" args="" --> |
209 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a9d39241aab7c4bbeb07c6d516421c67d">w</a></td></tr> |
210 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sample weights <img class="formulaInl" alt="$w$" src="form_106.png"/>. <br/></td></tr> |
211 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73d819553a0f268b055a087d2d4486f3"></a><!-- doxytag: member="bdm::eEmp::samples" ref="a73d819553a0f268b055a087d2d4486f3" args="" --> |
212 | | Array< vec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a73d819553a0f268b055a087d2d4486f3">samples</a></td></tr> |
213 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Samples <img class="formulaInl" alt="$x^{(i)}, i=1..n$" src="form_107.png"/>. <br/></td></tr> |
214 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eEmp::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
215 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
216 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br/></td></tr> |
217 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eEmp::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
218 | | <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> |
219 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br/></td></tr> |
| 218 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eEmp::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
| 219 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
| 220 | |
| 221 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
| 222 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
| 223 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9798006271ca77629855113f1283a031"></a><!-- doxytag: member="bdm::eEmp::n" ref="9798006271ca77629855113f1283a031" args="" --> |
| 224 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#9798006271ca77629855113f1283a031">n</a></td></tr> |
| 225 | |
| 226 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of particles. <br></td></tr> |
| 227 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9d39241aab7c4bbeb07c6d516421c67d"></a><!-- doxytag: member="bdm::eEmp::w" ref="9d39241aab7c4bbeb07c6d516421c67d" args="" --> |
| 228 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#9d39241aab7c4bbeb07c6d516421c67d">w</a></td></tr> |
| 229 | |
| 230 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sample weights <img class="formulaInl" alt="$w$" src="form_106.png">. <br></td></tr> |
| 231 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73d819553a0f268b055a087d2d4486f3"></a><!-- doxytag: member="bdm::eEmp::samples" ref="73d819553a0f268b055a087d2d4486f3" args="" --> |
| 232 | Array< vec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#73d819553a0f268b055a087d2d4486f3">samples</a></td></tr> |
| 233 | |
| 234 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Samples <img class="formulaInl" alt="$x^{(i)}, i=1..n$" src="form_107.png">. <br></td></tr> |
| 235 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eEmp::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
| 236 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
| 237 | |
| 238 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
| 239 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eEmp::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
| 240 | <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> |
| 241 | |
| 242 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |