183 | | <p>Load from structure with elements: </p> |
184 | | <div class="fragment"><pre class="fragment"> { alpha = [...]; <span class="comment">// vector of alpha</span> |
185 | | <a class="code" href="classbdm_1_1mgamma.html#ab20cf88cca1fe9b0b8f2a412608bfd09" title="Constant .">k</a> = 1.1; <span class="comment">// multiplicative constant k</span> |
186 | | rv = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>,...} <span class="comment">// description of RV</span> |
187 | | <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> |
188 | | } |
| 183 | <p>Create Gamma density with conditional mean value </p> |
| 184 | <p class="formulaDsp"> |
| 185 | <img class="formulaDsp" alt="\[ f(rv|rvc) = \Gamma(k, k/rvc) \]" src="form_170.png"/> |
| 186 | </p> |
| 187 | <p> from structure </p> |
| 188 | <div class="fragment"><pre class="fragment"> <span class="keyword">class </span>= '<a class="code" href="classbdm_1_1mgamma.html#a1a9dc8661e5b214a8185d6e6b9956eb1" title="Constructor.">mgamma</a>'; |
| 189 | beta = [...]; <span class="comment">// vector of initial alpha</span> |
| 190 | <a class="code" href="classbdm_1_1mgamma.html#ab20cf88cca1fe9b0b8f2a412608bfd09" title="Constant .">k</a> = 1.1; <span class="comment">// multiplicative constant k</span> |
| 191 | rv = RV({<span class="stringliteral">'name'</span>}) <span class="comment">// description of RV</span> |
| 192 | <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> |