POV-Ray : Newsgroups : povray.advanced-users : Normal distribution : Re: Normal distribution Server Time
28 Jul 2024 18:22:45 EDT (-0400)
  Re: Normal distribution  
From: Andrew C on Mozilla
Date: 6 May 2004 14:49:14
Message: <409a88aa$1@news.povray.org>
>>POV-Ray's random number generator gives uniformly distributed real numbers.
> 
>   Actually no. It gives uniformly distributed real numbers between 0 and 1,
> which is a slightly different thing.

Well yeah, but you know what I *mean* ;-)

>   (And we can also split hairs by noting that floating points numbers aren't
> real numbers but a finite set of rational numbers, but would not be relevant
> here... :) )

True. (I do recall asking how far apart these numbers are, but never 
really got an answer...)

>>Any idea how to transform these into normally distributed numbers?
> 
>   You can approximate a normal distribution of numbers between 0 and 1
> by taking the sum of n equally-distributed numbers and dividing the
> result by n. The higher the n, the more closely it resembles normal
> distribution, but for practical purposes you don't need a very large n.
> Even n=3 already gives a pretty good distribution.

...because the means of different samples from a given population are 
normally distributed around the true mean of the population? (And the 
true mean of a *truely* uniform distribution from 0 to 1 would be 0.5)

Andrew @ home.


Post a reply to this message

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