Class FastGaussianDistributionD
Creates random values using an approximate Gaussian distribution (double-precision).
Inheritance
System.Object
FastGaussianDistributionD
Assembly: Mars.Numerics.dll
Syntax
public class FastGaussianDistributionD : Distribution<double>
Remarks
Constructors
FastGaussianDistributionD()
Declaration
public FastGaussianDistributionD()
FastGaussianDistributionD(Double, Double)
Declaration
public FastGaussianDistributionD(double expectedValue, double standardDeviation)
Parameters
Type |
Name |
Description |
System.Double |
expectedValue |
The expected value. |
System.Double |
standardDeviation |
The standard deviation. |
Properties
ExpectedValue
Gets or sets the expected value.
Declaration
public double ExpectedValue { get; set; }
Property Value
Type |
Description |
System.Double |
The expected value. The default is 0. |
StandardDeviation
Gets or sets the standard deviation.
Declaration
public double StandardDeviation { get; set; }
Property Value
Type |
Description |
System.Double |
The standard deviation. The default is 1. |
Methods
Next(FastRandom)
Declaration
public override double Next(FastRandom random)
Parameters
Type |
Name |
Description |
Mars.Common.Core.Random.FastRandom |
random |
|
Returns
Type |
Description |
System.Double |
|
Overrides
Mars.Numerics.Statistics.Distribution<System.Double>.Next(Mars.Common.Core.Random.FastRandom)
Next(FastRandom, Double, Double)
Declaration
public double Next(FastRandom random, double expectedValue, double standardDeviation)
Parameters
Type |
Name |
Description |
Mars.Common.Core.Random.FastRandom |
random |
|
System.Double |
expectedValue |
|
System.Double |
standardDeviation |
|
Returns
Type |
Description |
System.Double |
|
Extension Methods