Discrete Distribution.Get Random Sequence Method
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Get | Returns a sequence of random samples from the distribution. |
Get | Returns a sequence of random samples from the distribution. |
Get | Returns a sequence of random samples of the specified length from the distribution. |
GetRandomSequence
Returns a sequence of random samples from the distribution.
public IEnumerable<int> GetRandomSequence()
Return Value
IEnumerable<Int32>An IEnumerable<Double>.
Remarks
This method uses the default random number generator specified by DefaultRandomNumberGenerator to generate an enumerable sequence of random samples from the distribution.
GetRandomSequence(Random)
Returns a sequence of random samples from the distribution.
public IEnumerable<int> GetRandomSequence(
Random random
)
Parameters
- random Random
- A Random object that specifies the uniform random number generator that is to be used to generate the samples.
Return Value
IEnumerable<Int32>An IEnumerable<Double>.
Remarks
This method uses the random number generator specified by random to generate an enumerable sequence of random samples from the distribution.
Exceptions
Argument | random is null. |
GetRandomSequence(Random, Int32)
Returns a sequence of random samples of the specified length from the distribution.
public IEnumerable<int> GetRandomSequence(
Random random,
int length
)
Parameters
- random Random
- A Random object that specifies the uniform random number generator that is to be used to generate the samples.
- length Int32
- The length of the sequence.
Return Value
IEnumerable<Int32>An IEnumerable<Double>.
Remarks
This method uses the random number generator specified by random to generate an enumerable sequence of random samples from the distribution.
Exceptions
Argument | random is null. |