|
From: | Quentin Spencer |
Subject: | Re: Difference between normal_rnd (m,v, n,n) and randn (n) |
Date: | Thu, 04 Mar 2004 14:04:47 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116 |
Henry F. Mollet wrote:
Do you mean a distribution whose density is f(x)=2x in the range [0,1]? This can be generated by taking the square root of a uniformly distributed random variable. To test this, tryThe only one I haven't found yet is a triangular distribution.
N = some large number x = rand(1,N); hist(sqrt(x)); -Quentin ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |