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

Home » Public Forums » archive » Re: Normal Distributed Random Numbers
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: Normal Distributed Random Numbers [message #26518 is a reply to message #26517] Tue, 04 September 2001 14:24 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Kay Bente wrote:
>
> Hi
> I have to create arrays with normal distributed random numbers, but with
> variable FWHM (Full width half max/standard deviation sigma?).
> I want to add normal distributed noise to an image, so that the values
> differ around a mean value.
> In IDL there is a procedure to create such arrays RandomN, but you can�t
> change the FWHM and I can�t find what FWHM the normal distribution there
> has.

For a normal distribution, FWHM = 2*sqrt(alog(2))*(standard deviation)

RandomN produces a distribution with a mean of 0 and a standard
deviation of 1.0. Therefore, to create an array with a desired mean
value and a desired value for FWHM, use:

array = mean + fwhm*RandomN(Seed, N)/(2*sqrt(alog(2)))
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Normal Distributed Random Numbers
Next Topic: Speed penalty using START and COUNT with HDF_SD_GETDATA

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

Current Time: Fri Oct 10 08:00:51 PDT 2025

Total time taken to generate the page: 0.96222 seconds