208 | | <p>Load from structure with elements: </p> |
209 | | <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1euni.html#acfad2dea4a62db6872bda8abd75f0de1" title="upper bound on support">high</a> = [...]; <span class="comment">// vector of upper bounds</span> |
210 | | <a class="code" href="classbdm_1_1euni.html#aff7ce6a2ef5ef0015bbd1398bed12f32" title="lower bound on support">low</a> = [...]; <span class="comment">// vector of lower bounds</span> |
211 | | <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 of RV</span> |
212 | | } |
| 208 | <p>Create Uniform density </p> |
| 209 | <p class="formulaDsp"> |
| 210 | <img class="formulaDsp" alt="\[ f(rv) = U(low,high) \]" src="form_167.png"/> |
| 211 | </p> |
| 212 | <p> from structure </p> |
| 213 | <div class="fragment"><pre class="fragment"> <span class="keyword">class </span>= 'euni' |
| 214 | <a class="code" href="classbdm_1_1euni.html#acfad2dea4a62db6872bda8abd75f0de1" title="upper bound on support">high</a> = [...]; <span class="comment">// vector of upper bounds</span> |
| 215 | <a class="code" href="classbdm_1_1euni.html#aff7ce6a2ef5ef0015bbd1398bed12f32" title="lower bound on support">low</a> = [...]; <span class="comment">// vector of lower bounds</span> |
| 216 | <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> |