Mail Archives: djgpp/2003/05/25/22:47:57
roon8505 AT uidaho DOT edu wrote:
>
> I'm currently writing a stochastic simulation in which I need to
> generate random variables (bounded (0,1)) with non-uniform
> distributions.
>
> The distribution I'm looking for would have:
>
> 1) an expected value at a user defined 'mean' (e.g. 0.015)
> 2) a 'fat-tailed' distribution, kurtosis to the upper end of the
> curve
>
> There are several functions I can think of that could work. E.G.
> lognormal, gamma, beta.
>
> I searched the archives, and found nothing pre-existing.
>
> Before I try to write my own code, are there any pre-existing
> DJGPP modules that will work for me?
Look at the functions gaussrand and gausspos in tnmalloc.c,
contained in:
<http://cbfalconer.home.att.net/download/nmalloc.zip>
I was preparing to use them in some long running tests, but have
not done so yet.
BTW, please control your line length. Lines should always be
under 80 chars long (per various RFCs), and 65 or so is optimal.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -