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="b59af0efdb009d98ea8ebfa965e74ae2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="b59af0efdb009d98ea8ebfa965e74ae2" args="() const " --> |
113 | | const Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#b59af0efdb009d98ea8ebfa965e74ae2">_samples</a> () 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="f06ce255de5dbb2313f52ee51f82ba3d"></a><!-- doxytag: member="bdm::eEmp::resample" ref="f06ce255de5dbb2313f52ee51f82ba3d" args="(RESAMPLING_METHOD method=SYSTEMATIC)" --> |
117 | | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#f06ce255de5dbb2313f52ee51f82ba3d">resample</a> (RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
118 | | |
119 | | <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> |
120 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97f1e07b5ae6eebc91c7365f0f88d270"></a><!-- doxytag: member="bdm::eEmp::sample" ref="97f1e07b5ae6eebc91c7365f0f88d270" args="() const " --> |
121 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#97f1e07b5ae6eebc91c7365f0f88d270">sample</a> () const </td></tr> |
122 | | |
123 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br></td></tr> |
124 | | <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 " --> |
125 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#01654c014d3aa068f8d4ecba4be86d09">evallog</a> (const vec &val) const </td></tr> |
126 | | |
127 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br></td></tr> |
128 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bbfcb4f868c7381298c281a256d8c4b9"></a><!-- doxytag: member="bdm::eEmp::mean" ref="bbfcb4f868c7381298c281a256d8c4b9" args="() const " --> |
129 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#bbfcb4f868c7381298c281a256d8c4b9">mean</a> () const </td></tr> |
130 | | |
131 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
132 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e9ebf467ede737cb6a3621d7fd3c87"></a><!-- doxytag: member="bdm::eEmp::variance" ref="05e9ebf467ede737cb6a3621d7fd3c87" args="() const " --> |
133 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#05e9ebf467ede737cb6a3621d7fd3c87">variance</a> () const </td></tr> |
134 | | |
135 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
136 | | <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 " --> |
137 | | 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> |
138 | | |
139 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">For this class, qbounds are minimum and maximum value of the population! <br></td></tr> |
140 | | <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> |
141 | | |
142 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eEmp::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
143 | | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
144 | | |
145 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
146 | | <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 " --> |
147 | | 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> |
148 | | |
149 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
150 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eEmp::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
151 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
152 | | |
153 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
| 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 | |
| 77 | <p><code>#include <<a class="el" href="exp__family_8h_source.html">exp_family.h</a>></code></p> |
| 78 | |
| 79 | <p><a href="classbdm_1_1eEmp-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="ae7f8f98310c1de51bd5c8a1c87528f72"></a><!-- doxytag: member="bdm::eEmp::set_statistics" ref="ae7f8f98310c1de51bd5c8a1c87528f72" args="(const vec &w0, const epdf &pdf0)" --> |
| 83 | 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> |
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples and weights. <br/></td></tr> |
| 85 | <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)" --> |
| 86 | 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> |
| 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="ab62d802b8ef39f7c4dcbeb366c90951a"></a><!-- doxytag: member="bdm::eEmp::set_samples" ref="ab62d802b8ef39f7c4dcbeb366c90951a" args="(const epdf *pdf0)" --> |
| 89 | 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> |
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sample. <br/></td></tr> |
| 91 | <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)" --> |
| 92 | 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> |
| 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="a37937007a3a676cf653a7de412674481"></a><!-- doxytag: member="bdm::eEmp::set_parameters" ref="a37937007a3a676cf653a7de412674481" args="(const Array< vec > &Av)" --> |
| 95 | 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> |
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set samples. <br/></td></tr> |
| 97 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad7f83cc0415cd44ae7cc8b4bdad93aef"></a><!-- doxytag: member="bdm::eEmp::_w" ref="ad7f83cc0415cd44ae7cc8b4bdad93aef" args="()" --> |
| 98 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ad7f83cc0415cd44ae7cc8b4bdad93aef">_w</a> ()</td></tr> |
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Potentially dangerous, use with care. <br/></td></tr> |
| 100 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7d7106f486e3fad38590914a693d714"></a><!-- doxytag: member="bdm::eEmp::_w" ref="ab7d7106f486e3fad38590914a693d714" args="() const " --> |
| 101 | const vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab7d7106f486e3fad38590914a693d714">_w</a> () const </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="ac24966b0aaeb767bc8a6b4fd60931be2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="ac24966b0aaeb767bc8a6b4fd60931be2" args="()" --> |
| 104 | Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ac24966b0aaeb767bc8a6b4fd60931be2">_samples</a> ()</td></tr> |
| 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
| 106 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab59af0efdb009d98ea8ebfa965e74ae2"></a><!-- doxytag: member="bdm::eEmp::_samples" ref="ab59af0efdb009d98ea8ebfa965e74ae2" args="() const " --> |
| 107 | const Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#ab59af0efdb009d98ea8ebfa965e74ae2">_samples</a> () const </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="af06ce255de5dbb2313f52ee51f82ba3d"></a><!-- doxytag: member="bdm::eEmp::resample" ref="af06ce255de5dbb2313f52ee51f82ba3d" args="(RESAMPLING_METHOD method=SYSTEMATIC)" --> |
| 110 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#af06ce255de5dbb2313f52ee51f82ba3d">resample</a> (RESAMPLING_METHOD method=SYSTEMATIC)</td></tr> |
| 111 | <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> |
| 112 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97f1e07b5ae6eebc91c7365f0f88d270"></a><!-- doxytag: member="bdm::eEmp::sample" ref="a97f1e07b5ae6eebc91c7365f0f88d270" args="() const " --> |
| 113 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a97f1e07b5ae6eebc91c7365f0f88d270">sample</a> () const </td></tr> |
| 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br/></td></tr> |
| 115 | <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 " --> |
| 116 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a01654c014d3aa068f8d4ecba4be86d09">evallog</a> (const vec &val) const </td></tr> |
| 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">inherited operation : NOT implemented <br/></td></tr> |
| 118 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abbfcb4f868c7381298c281a256d8c4b9"></a><!-- doxytag: member="bdm::eEmp::mean" ref="abbfcb4f868c7381298c281a256d8c4b9" args="() const " --> |
| 119 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#abbfcb4f868c7381298c281a256d8c4b9">mean</a> () const </td></tr> |
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
| 121 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05e9ebf467ede737cb6a3621d7fd3c87"></a><!-- doxytag: member="bdm::eEmp::variance" ref="a05e9ebf467ede737cb6a3621d7fd3c87" args="() const " --> |
| 122 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a05e9ebf467ede737cb6a3621d7fd3c87">variance</a> () const </td></tr> |
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> |
| 124 | <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 " --> |
| 125 | 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> |
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">For this class, qbounds are minimum and maximum value of the population! <br/></td></tr> |
| 127 | <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> |
| 128 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eEmp::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
| 129 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
| 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
| 131 | <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 " --> |
| 132 | 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> |
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
| 134 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eEmp::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
| 135 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
| 136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
176 | | <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 " --> |
177 | | 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> |
178 | | |
179 | | <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> |
180 | | <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 " --> |
181 | | 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> |
182 | | |
183 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
184 | | <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 " --> |
185 | | 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> |
186 | | |
187 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
188 | | <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 " --> |
189 | | 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> |
190 | | |
191 | | <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> |
192 | | <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 " --> |
193 | | 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> |
194 | | |
195 | | <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> |
| 161 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> |
| 162 | <br/><br/></div></td></tr> |
| 163 | <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 " --> |
| 164 | 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> |
| 165 | <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> |
| 166 | <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 " --> |
| 167 | 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> |
| 168 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
| 169 | <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 " --> |
| 170 | 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> |
| 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
| 172 | <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 " --> |
| 173 | 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> |
| 174 | <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> |
| 175 | <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 " --> |
| 176 | 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> |
| 177 | <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> |
211 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eEmp::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
212 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
213 | | |
214 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
215 | | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
216 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9798006271ca77629855113f1283a031"></a><!-- doxytag: member="bdm::eEmp::n" ref="9798006271ca77629855113f1283a031" args="" --> |
217 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#9798006271ca77629855113f1283a031">n</a></td></tr> |
218 | | |
219 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of particles. <br></td></tr> |
220 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9d39241aab7c4bbeb07c6d516421c67d"></a><!-- doxytag: member="bdm::eEmp::w" ref="9d39241aab7c4bbeb07c6d516421c67d" args="" --> |
221 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#9d39241aab7c4bbeb07c6d516421c67d">w</a></td></tr> |
222 | | |
223 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sample weights <img class="formulaInl" alt="$w$" src="form_95.png">. <br></td></tr> |
224 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73d819553a0f268b055a087d2d4486f3"></a><!-- doxytag: member="bdm::eEmp::samples" ref="73d819553a0f268b055a087d2d4486f3" args="" --> |
225 | | Array< vec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#73d819553a0f268b055a087d2d4486f3">samples</a></td></tr> |
226 | | |
227 | | <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> |
228 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eEmp::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
229 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
230 | | |
231 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
232 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eEmp::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
233 | | <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> |
234 | | |
235 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
| 191 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> |
| 192 | <br/><br/></div></td></tr> |
| 193 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eEmp::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
| 194 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
| 195 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br/></td></tr> |
| 196 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
| 197 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9798006271ca77629855113f1283a031"></a><!-- doxytag: member="bdm::eEmp::n" ref="a9798006271ca77629855113f1283a031" args="" --> |
| 198 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a9798006271ca77629855113f1283a031">n</a></td></tr> |
| 199 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of particles. <br/></td></tr> |
| 200 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d39241aab7c4bbeb07c6d516421c67d"></a><!-- doxytag: member="bdm::eEmp::w" ref="a9d39241aab7c4bbeb07c6d516421c67d" args="" --> |
| 201 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a9d39241aab7c4bbeb07c6d516421c67d">w</a></td></tr> |
| 202 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sample weights <img class="formulaInl" alt="$w$" src="form_95.png"/>. <br/></td></tr> |
| 203 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73d819553a0f268b055a087d2d4486f3"></a><!-- doxytag: member="bdm::eEmp::samples" ref="a73d819553a0f268b055a087d2d4486f3" args="" --> |
| 204 | Array< vec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEmp.html#a73d819553a0f268b055a087d2d4486f3">samples</a></td></tr> |
| 205 | <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> |
| 206 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eEmp::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
| 207 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
| 208 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br/></td></tr> |
| 209 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eEmp::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
| 210 | <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> |
| 211 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br/></td></tr> |