218 | | <p>Load from structure with elements: </p> |
219 | | <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1egamma.html#a0901ec983e66b8337aaa506e13b122fa" title="Vector .">alpha</a> = [...]; <span class="comment">// vector of alpha</span> |
220 | | <a class="code" href="classbdm_1_1egamma.html#a457bfb1ccb2057df85073e519a15ccc1" title="Vector .">beta</a> = [...]; <span class="comment">// vector of beta</span> |
221 | | <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>,...} <span class="comment">// description</span> |
222 | | } |
| 218 | <p>Create Gamma density </p> |
| 219 | <p class="formulaDsp"> |
| 220 | <img class="formulaDsp" alt="\[ f(rv|rvc) = \Gamma(\alpha, \beta) \]" src="form_166.png"/> |
| 221 | </p> |
| 222 | <p> from structure </p> |
| 223 | <div class="fragment"><pre class="fragment"> <span class="keyword">class </span>= 'egamma'; |
| 224 | <a class="code" href="classbdm_1_1egamma.html#a0901ec983e66b8337aaa506e13b122fa" title="Vector .">alpha</a> = [...]; <span class="comment">// vector of alpha</span> |
| 225 | <a class="code" href="classbdm_1_1egamma.html#a457bfb1ccb2057df85073e519a15ccc1" title="Vector .">beta</a> = [...]; <span class="comment">// vector of beta</span> |
| 226 | <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = RV({<span class="stringliteral">'name'</span>}) <span class="comment">// description of RV</span> |