[erlang-questions] Gaussian Distribution
Thu Nov 1 06:52:09 CET 2012
> On Mon, Oct 29, 2012 at 5:59 AM, Frank Recker <> wrote:
>> Your points are correct, but I had reasons for my design choices.
>> - math:erf/1 was not available in my windows version of erlang
>> - under linux math:erf/1 delivers the value 1 for large x (x>7), which is
>> problematic. The exact value is always in the open interval (-1,1).
This is floating-point we are talking about.
For sufficiently large x, the closest floating point number WILL
be 1, like it or not. erf() is doing the best it possibly can.
More information about the erlang-questions