comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: random musings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: random musings [message #53125 is a reply to message #53124] Mon, 19 March 2007 13:58 Go to previous messageGo to previous message
news.verizon.net is currently offline  news.verizon.net
Messages: 47
Registered: August 2003
Member
On Mar 19, 4:30 pm, Christopher Thom <c...@oddjob.uchicago.edu> wrote:
> Hi all,
>
> this morning I started writing some monte carlo code, in which I'm
> generating random arrays, and scaling/shifting them to fit the (gaussian)
> distribution parameters I need. One thing is not clear in the online help:
> Which random function is "better"? Should I be using randomn() or
> randomu()?

I believe these functions are identical. In the ancient days, IDL
had two types of randomn number generators: RANDOMU, for a uniform
distribution, and RANDOMN for a normal distribution. When addition
distributions (e.g. binomial, Poisson, Gamma) were added (in V5.0 I
believe), RSI chose against adding additional RANDOM* functions, and
instead made all the distributions available from either RANDOMU or
RANDOMN.

This is one of those case where IDL suffers from having a long
history.

--Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cut down a big file (W/O delimiters) into several... but I still don't understand
Next Topic: Re: Cut down a big file (W/O delimiters) into several... but I still don't understand

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:35:11 PDT 2025

Total time taken to generate the page: 0.88133 seconds