X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Mar 2015 10:39 AM by  anon
Gaussian Distribution with Specified Mean and Sigma
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Mar 2015 10:39 AM
    Hello, I have to simulate a sensor response, which has spectral response functions of Gaussian from 380 to 2510 nm with 10 nm sampling and 12 nm FWHM. sigma = FWHM / 2.35 mean = 0 array = RANDOMN(seed, 60) ; it is 60, assuming 30th band is the center band. new_distribution = array * sigma + mean However, the generated numbers are not what I expected, ranging from -5 to 5. I was expecting a set of numbers ranging between 0 and 1, center band has the highest value 1, FWHM of the bell curve is 12nm. Please comment if I am missing something here. Thanks Best

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    06 Apr 2015 08:50 AM
    Hello, Have you tried using RANDOMU? I would look at the documentation to see the difference between the two: http://www.exelisvis.com/...l#R_822202989_678392 http://www.exelisvis.com/...#R_822202989_1079058

    Deleted User



    New Member


    Posts:
    New Member


    --
    10 May 2015 02:16 PM
    Thank you so much for your replay Zach. Best, Matt
    You are not authorized to post a reply.