Class NormalDistribution
Provides generation of normal distributed random numbers.
Inherited Members
Namespace: Experior.Core.Mathematics.Statistics.Generators.Continuous
Assembly: Experior.Core.dll
Syntax
public class NormalDistribution : Distribution
Remarks
The implementation of the NormalDistribution type bases upon information presented on Wikipedia - Normal distribution.
Constructors
NormalDistribution()
Initializes a new instance of the NormalDistribution class, using a StandardGenerator as underlying random number generator.
Declaration
public NormalDistribution()
NormalDistribution(Generator)
Initializes a new instance of the NormalDistribution class, using the specified Generator as underlying random number generator.
Declaration
public NormalDistribution(Generator generator)
Parameters
Type | Name | Description |
---|---|---|
Generator | generator | A Generator object. |
Properties
Maximum
Gets the maximum possible value of normal distributed random numbers.
Declaration
public override double Maximum { get; }
Property Value
Type | Description |
---|---|
System.Double | The maximum. |
Overrides
Mean
Gets the mean value of normal distributed random numbers.
Declaration
public override double Mean { get; }
Property Value
Type | Description |
---|---|
System.Double | The mean. |
Overrides
Median
Gets the median of normal distributed random numbers.
Declaration
public override double Median { get; }
Property Value
Type | Description |
---|---|
System.Double | The median. |
Overrides
Minimum
Gets the minimum possible value of normal distributed random numbers.
Declaration
public override double Minimum { get; }
Property Value
Type | Description |
---|---|
System.Double | The minimum. |
Overrides
Mode
Gets the mode of normal distributed random numbers.
Declaration
public override double[] Mode { get; }
Property Value
Type | Description |
---|---|
System.Double[] | The mode. |
Overrides
Mu
Gets or sets the parameter mu which is used for generation of normal distributed random numbers.
Declaration
public double Mu { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The mu. |
Remarks
Call IsValidMu(Double) to determine whether a value is valid and therefor assignable.
Sigma
Gets or sets the parameter sigma which is used for generation of normal distributed random numbers.
Declaration
public double Sigma { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The sigma. |
Remarks
Call IsValidSigma(Double) to determine whether a value is valid and therefor assignable.
Variance
Gets the variance of normal distributed random numbers.
Declaration
public override double Variance { get; }
Property Value
Type | Description |
---|---|
System.Double | The variance. |
Overrides
Methods
IsValidMu(Double)
Determines whether the specified value is valid for parameter Mu.
Declaration
public bool IsValidMu(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value to check. |
Returns
Type | Description |
---|---|
System.Boolean | true. |
IsValidSigma(Double)
Determines whether the specified value is valid for parameter Sigma.
Declaration
public bool IsValidSigma(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if value is greater than 0.0; otherwise, false. |
NextDouble()
Returns a normal distributed floating point random number.
Declaration
public override double NextDouble()
Returns
Type | Description |
---|---|
System.Double | A normal distributed double-precision floating point number. |
Overrides
Reset()
Resets the normal distribution, so that it produces the same random number sequence again.
Declaration
public override bool Reset()
Returns
Type | Description |
---|---|
System.Boolean | true, if the normal distribution was reset; otherwise, false. |