unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: guile-user@gnu.org
Subject: Re: Normal distribution random numbers
Date: Sun, 31 May 2020 01:16:23 +0200	[thread overview]
Message-ID: <e448eab5-aabb-5958-8595-fc01452cabaf@posteo.de> (raw)
In-Reply-To: <87r1v1glfb.fsf@web.de>

Hi Arne!

Thanks for the pointers!

On 5/30/20 11:30 PM, Arne Babenhauserheide wrote:
> Hi Zelphir,
>
> Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:
>> Then I thought: How would I get normal distributed random numbers? I
>> don't have a project or program in mind for this, but it struck me, that
>> I do not know, how to get a normal distribution from a uniform
>> distribution. So I dug into the matter …
> …
>> So my question is: Is there a good implementation in the Guile universe
>> already? (Or a simple way to implement it?) I don't really need it right
>> now, but I think this thing could be an obstacle for many people without
>> serious math knowledge and it would be good to know, where to find it,
>> should one have need for normal distributed random numbers.
> I don’t know how random:normal does it, just that I used it.
>
> See https://www.gnu.org/software/guile/manual/html_node/Random.html
>
> If you want to add defined covariance, you can use cholesky
> decomposition: https://hg.sr.ht/~arnebab/wisp/browse/examples/cholesky.scm?rev=91ec8dc32652
>
> Best wishes,
> Arne



  reply	other threads:[~2020-05-30 23:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 20:21 Normal distribution random numbers Zelphir Kaltstahl
2020-05-30 20:42 ` Zelphir Kaltstahl
2020-06-04 15:03   ` Mikael Djurfeldt
2020-06-04 15:08     ` Zelphir Kaltstahl
2020-06-04 15:11       ` Mikael Djurfeldt
2020-06-04 15:22         ` Mikael Djurfeldt
2020-05-30 21:30 ` Arne Babenhauserheide
2020-05-30 23:16   ` Zelphir Kaltstahl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-31 15:12 tantalum
2020-05-31 19:54 ` Zelphir Kaltstahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e448eab5-aabb-5958-8595-fc01452cabaf@posteo.de \
    --to=zelphirkaltstahl@posteo.de \
    --cc=arne_bab@web.de \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).