StdRandomGaussian Method (Double, Double) |
Returns a random real number from a Gaussian distribution with mean mu (μ)
and standard deviation sigma (σ).
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static double Gaussian(
double mu,
double sigma
)
Parameters
- mu
- Type: SystemDouble
mu (μ) the mean - sigma
- Type: SystemDouble
sigma (σ) the standard deviation
Return Value
Type:
Doublea real number distributed according to the Gaussian distribution
with mean
mu and standard deviation
sigma
See Also