Multivariate Continuous Distribution.Sample Method
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Sample( | Returns a random sample from the distribution. |
Sample( | Returns a matrix with random samples from the distribution. |
Sample(Random)
Returns a random sample from the distribution.
public DenseVector<double> Sample(
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
DenseVector<Double>Remarks
This method returns a vector that contains a single sample from the distribution.
Exceptions
ArgumentNullException | random is null. |
Sample(Random, Int32)
Returns a matrix with random samples from the distribution.
public virtual DenseMatrix<double> Sample(
Random random,
int count
)
Parameters
- random Random
- A Random object that specifies the uniform random number generator that is to be used to generate the samples.
- count Int32
- The number of samples to return.
Return Value
DenseMatrix<Double>Remarks
Each row of the matrix contains a random sample from the distribution.
Exceptions
ArgumentOutOfRangeException | count is less than zero. |