[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: random number vectors

From: matt
Subject: Re: random number vectors
Date: Sun, 19 Jul 2009 23:05:57 +0200 (CEST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Yes, that sounds exactly right.   normal01 --> uniform01.


On Sun, 19 Jul 2009, Neil Jerram wrote:

matt <address@hidden> writes:


Guile lets me make a single random:uniform or a single
random:normal. It also lets me make a random:normal-vector! but
doesn't let me make a random:uniform-vector!

Is the reason for this?

Probably just a matter of what was needed at the time these functions
were implemented.

Where is the source for random:normal-vector! in 1.8, so that I can
copy it to make a random:uniform-vector!?  The only reference I found

In libguile/random.c, look for "SCM_DEFINE (scm_random_normal_vector_x".

Unless you already have a copyright assignment on file for Guile,
though, it's simpler if we add the necessary function and you review
it.  I'm not an expert on this code, but it looks as though all we
need is a copy of scm_random_normal_vector_x with scm_c_normal01
replaced by scm_c_uniform01.  Does that sound right to you?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]