1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/MS) - MSfGaussRand</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>MSfGaussRand</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
double MSfGaussRand (double rms)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Generate a Gaussian pseudo-random value
</DL>
<H4>Description</H4>
This routine generates pseudo-random numbers with a Gaussian distribution.
The numbers are generated by summing 12 uniformly distributed pseudo-random
numbers. The result is approximately Gaussian (central limit theorem) with a
range between -6 and +6 standard deviations. This routine uses the function
UTfUnifRand as the source of uniform pseudo-random numbers.
<H4>Parameters</H4>
<DL>
<DT>
<- double MSfGaussRand
<DD>
Gaussian deviate, mean zero, standard deviation rms
<DT>
-> double rms
<DD>
Root-mean square value of the deviate (standard deviation)
</DL>
<H4>Author / revision</H4>
P. Kabal Copyright (C) 1996
/ Revision 1.5 1996/04/17
<H4>See Also</H4>
<A HREF="MSfUnifRand.html">MSfUnifRand</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|