<P>for example: the generated random number is <br><br> 0,0,0,1,-1,-1,1,1,<br><br>the amount of 0 is 3<br>the amount of 1 is 3 <br>the amount of -1 is 2 <br>the total amount is 8,so the density is 3/8,3/8,2/8 respectively. As is the <br>same case for continous example. You know the density f should satisfy<br> integration fdx=1 .....continous example<br> sum f=1 ....scatter example <br>3/8+3/8+2/8=1 </P>
[此贴子已经被作者于2006-5-25 14:38:12编辑过]
|