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

Home » Public Forums » archive » random numbers with gamma distribution
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
random numbers with gamma distribution [message #13427] Wed, 04 November 1998 00:00 Go to previous message
f055 is currently offline  f055
Messages: 29
Registered: April 1995
Junior Member
Dear All

I'm trying to generate a random series that has a gamma distribution, using
the randomu() function with the gamma keyword. The online help says to set
gamma to an integer > 0. WHY DOES IT HAVE TO BE AN INTEGER? The gamma
distribution is in fact defined for all gamma > 0, not just integers.
I want to set gamma=0.5, which currently fails as it converts it to the
integer 0, which is not > 0, and so it fails.

Is this a bug, and is there any work-around?

Cheers

Tim



......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VALUE_LOCATE and NaNs
Next Topic: Re: VALUE_LOCATE and NaNs

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

Current Time: Wed Oct 08 13:41:54 PDT 2025

Total time taken to generate the page: 0.00394 seconds