Class Distribution<T>
Base class of probability distributions.
Inheritance
System.Object
Distribution<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Numerics.Statistics
Assembly: Mars.Numerics.dll
Syntax
public abstract class Distribution<T>
Type Parameters
Name | Description |
---|---|
T | The type of the random value. |
Methods
| Improve this Doc View SourceNext(FastRandom)
Gets a new random value for the underlying probability distribution.
Declaration
public abstract T Next(FastRandom random)
Parameters
Type | Name | Description |
---|---|---|
Mars.Common.Core.Random.FastRandom | random | The random number generator. (Must not be null.) |
Returns
Type | Description |
---|---|
T | A random value. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
random is null.
|