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
Re: Random Numbers [message #81832 is a reply to message #13427] Wed, 24 October 2012 16:34 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, October 24, 2012 5:38:34 PM UTC-4, John O'Neill wrote:
> Hello Everyone,
>
>
>
> I am trying to create a set of random numbers using an Inverse Gaussian Distribution (Wald distribution) but randomu doesn't seem able to do this. Is there anything more general then randomu, or something where I can define what function I want to use to create random numbers?

http://en.wikipedia.org/wiki/Inverse_transform_sampling

I'm not aware of any IDL routines to do this though, but it's not hard with a little integrating and interpolating.

The difficulty of implementing the method depends on the distribution to some degree. For example, power law distributions can be hard to do because of the dynamic range required.

Craig
[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 17:43:35 PDT 2025

Total time taken to generate the page: 0.00405 seconds