From: Mikael Djurfeldt <mikael@djurfeldt.com>
To: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
Cc: Maxime Devos <maximedevos@telenet.be>,
Guile User <guile-user@gnu.org>,
Mikael Djurfeldt <mikael@djurfeldt.com>
Subject: Re: Generating "independent" random numbers
Date: Wed, 18 Oct 2023 21:08:55 +0200 [thread overview]
Message-ID: <CAA2XvwL_V7sGFyVmE8aNoBAkT-mUd89vUDaykWGLzxyumSgqsQ@mail.gmail.com> (raw)
In-Reply-To: <34c4e0da-34fa-4212-8d1f-060a809b08a0@posteo.de>
On Wed, Oct 4, 2023 at 12:22 AM Zelphir Kaltstahl <
zelphirkaltstahl@posteo.de> wrote:
> Aye, sorry for that typo. Yes, my goal is normal distributed floats
> (leaving
> aside the finite nature of the computer and floats).
>
Maybe I'm missing something from just skimming this long discussion, but
what about
(random:normal)
(at the guile prompt)?
That's a distribution centered at 0 with sigma 1. I assume you know how to
shift it and scale it. If you're curious how to get it from a uniform
distribution, have a look at libguile/random.c.
Best regards,
Mikael
prev parent reply other threads:[~2023-10-18 19:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-03 15:08 Generating "independent" random numbers Zelphir Kaltstahl
2023-10-03 16:04 ` tomas
2023-10-03 16:16 ` tomas
2023-10-03 22:17 ` Zelphir Kaltstahl
2023-10-03 22:16 ` Zelphir Kaltstahl
2023-10-03 18:25 ` Maxime Devos
2023-10-03 22:22 ` Zelphir Kaltstahl
2023-10-04 16:14 ` Keith Wright
2023-10-10 22:03 ` Maxime Devos
2023-10-10 23:04 ` Keith Wright
2023-10-11 11:31 ` Maxime Devos
2023-10-18 19:08 ` Mikael Djurfeldt [this message]
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=CAA2XvwL_V7sGFyVmE8aNoBAkT-mUd89vUDaykWGLzxyumSgqsQ@mail.gmail.com \
--to=mikael@djurfeldt.com \
--cc=guile-user@gnu.org \
--cc=maximedevos@telenet.be \
--cc=zelphirkaltstahl@posteo.de \
/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).