Re: Generating normally distributed randoms in CL
- From: Leonardo Varuzza <varuzza@xxxxxxxxx>
- Date: Tue, 29 Jul 2008 18:50:16 -0700 (PDT)
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)
.
- Follow-Ups:
- Re: Generating normally distributed randoms in CL
- From: namekuseijin
- Re: Generating normally distributed randoms in CL
- References:
- Generating normally distributed randoms in CL
- From: krzysztof.kielak@xxxxxxxxxxxxxx
- Generating normally distributed randoms in CL
- Prev by Date: paging all socket geniuses
- Next by Date: Re: Collecting like-labelled sublists of a list
- Previous by thread: Re: Generating normally distributed randoms in CL
- Next by thread: Re: Generating normally distributed randoms in CL
- Index(es):
Relevant Pages
|