POV-Ray : Newsgroups : povray.advanced-users : Stochastics expertise needed : Re: Stochastics expertise needed Server Time
16 May 2024 23:21:56 EDT (-0400)
  Re: Stochastics expertise needed  
From: clipka
Date: 27 Aug 2016 06:13:24
Message: <57c167c4$1@news.povray.org>
Am 27.08.2016 um 11:26 schrieb lelama:

>> 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.
> 
> Hi,
> 
> There is a proposal at the end of my previous message. Using uniform
> distribution for y,t,d and throwing away some "bad" points, you get
> whatever distribution you want. If you don't like the piecewised
> affine d that I suggested (the derivative of the density probabilty is not zero
> at y=1, so maybe not suitable for you), you can choose any positive function d
> instead with the same construction.

The monte-carlo approach of generating arbitrarily distributed random
numbers is only practical if the points to throw away are reasonably
few, in other words if d(y)>>0 for most of the function. Unfortunately
that's specifically not the case I'm aiming for -- I want d(y)>>0 only
in a small portion near y=0.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.