Re: usage of function random

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 12 2012 - 10:38:04 MDT

You must generate a large number of samples to get
approximate a mean of 2.

On 3/12/12 5:46 AM, JinQ Liu wrote:
> hi,
> function random_normal(av,sd,N)
> av is depicted as "mean of the normal distribution".
> I understand it as av=average( all the numbers ) , but
>
> > print(random_normal(2d,1,(/1,2/)))
> (0,0)3.112557132052476
> (0,1)3.38928735192927
> > print(random_normal(2,1,(/1,2/)))
> (0,0)3.861252
> (0,1)2.223921
>
> both the average is not 2. what is wrong?
>
>
>
> Thanks!
> JinQ
>
> --
> JinQing LIU M.S.
> Ocean University of China
> --
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 12 06:38:12 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 13 2012 - 14:00:14 MDT