|
|
Am 27.08.2016 um 05:49 schrieb clipka:
> Am 27.08.2016 um 01:18 schrieb lelama:
>
>> You parametrize your sphere by t,y using the formula x= r cos t, y,z= r sin t
>> with y in [-1,1] and r=sqrt(1-y^2).
>>
>> Then you choose t uniformly, and for y, you choose your distribution as you want
>> (this is you free parameter). Then the density around a point x,y,z depends only
>> on y.
> ....
>> This shoud satisfy all your needs if I'm not wrong.
>
> Gee, I you have indeed nailed it!
Hm... this still leaves me with a quest for an easy-to-generate random
distribution in the range [0..1) with a nicely configurable peak at 0,
and an easy-to-compute probability density function.
I guess I want the derivative of the probability density function to be
zero at the peak, and ideally also at 1.
Post a reply to this message
|
|