Re: Generating normally distributed randoms in CL



On Jul 29, 7:00 am, "krzysztof.kie...@xxxxxxxxxxxxxx"
<krzysztof.kie...@xxxxxxxxxxxxxx> wrote:
Hi,

Is there a simple way to generate normally distributed random data in
CommonLisp? I'm looking for a package, that can handle this, and maybe
also other statistical stuff

best regards
Chris

I implemented the Ziggurat algorithm for normal variables in Common
lisp (the same used in GSL).

This code and other random numbers generators are availiable in my
package:

http://code.google.com/p/cl-randist/

Can also be get by asdf-install (asdf-install:install :cl-randist)

Or by git, with this command:

git clone http://lambdatau.com/git/cl-randist

Generanting normal distributed values with mean 0 and variance 1 is
simples as:

(randist:random-normal 0d0 1d0)

.



Relevant Pages