Class Distribution<T>
Base class of probability distributions.
Inheritance
System.Object
Distribution<T>
Namespace: Mars.Numerics.Statistics
Assembly: Mars.Numerics.dll
Syntax
public abstract class Distribution<T> : object
Type Parameters
Name | Description |
---|---|
T | The type of the random value. |
Methods
Next(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 langword_csharp_null.) |
Returns
Type | Description |
---|---|
T | A random value. |