196 | | <p>Load from structure with elements: </p> |
197 | | <div class="fragment"><pre class="fragment"> { alpha = [...]; <span class="comment">// vector of alpha</span> |
198 | | <a class="code" href="classbdm_1_1mgamma.html#ab20cf88cca1fe9b0b8f2a412608bfd09" title="Constant .">k</a> = 1.1; <span class="comment">// multiplicative constant k</span> |
199 | | rv = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>,...} <span class="comment">// description of RV</span> |
200 | | <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>,...} <span class="comment">// description of RV in condition</span> |
201 | | } |
| 196 | <p>Create Gamma density with conditional mean value </p> |
| 197 | <p class="formulaDsp"> |
| 198 | <img class="formulaDsp" alt="\[ f(rv|rvc) = \Gamma(k, k/rvc) \]" src="form_170.png"/> |
| 199 | </p> |
| 200 | <p> from structure </p> |
| 201 | <div class="fragment"><pre class="fragment"> <span class="keyword">class </span>= '<a class="code" href="classbdm_1_1mgamma.html#a1a9dc8661e5b214a8185d6e6b9956eb1" title="Constructor.">mgamma</a>'; |
| 202 | beta = [...]; <span class="comment">// vector of initial alpha</span> |
| 203 | <a class="code" href="classbdm_1_1mgamma.html#ab20cf88cca1fe9b0b8f2a412608bfd09" title="Constant .">k</a> = 1.1; <span class="comment">// multiplicative constant k</span> |
| 204 | rv = RV({<span class="stringliteral">'name'</span>}) <span class="comment">// description of RV</span> |
| 205 | <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> = RV({<span class="stringliteral">'name'</span>}) <span class="comment">// description of RV in condition</span> |