Multivariate Continuous Distribution.Fill Samples Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Overload List
| Fill | Fills the rows of a matrix with random samples from the distribution. |
| Fill | Fills the rows of a matrix with random samples from the distribution. |
| Fill | Fills the rows of a matrix with random samples from the distribution. |
| Fill | Fills the rows of a matrix with random samples from the distribution. |
FillSamples<TGenerator>(TGenerator, Matrix<Double>)
protected virtual void FillSamples<TGenerator>(
ref TGenerator generator,
Matrix<double> samples
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
Type Parameters
- TGenerator
- The underlying generator type of the random source, used to enable optimizations like inlining.
Remarks
This method fills the rows of the matrix specified by samples, with random samples from the distribution.
Exceptions
| Argument | samples is null. |
| Dimension | The number of columns of samples does not equal the Order of the distribution. |
FillSamples(IRandomSource, Matrix<Double>)
public void FillSamples(
IRandomSource random,
Matrix<double> samples
)Parameters
- random IRandomSource
- The random number generator to use.
- samples Matrix<Double>
- A vector.
Remarks
This method fills the rows of the matrix specified by samples, with random samples from the distribution.
Exceptions
| Argument | samples is null. -or- random is null. |
| Dimension | The number of columns of samples does not equal the Order of the distribution. |
FillSamples<TGenerator>(IRandomSource<TGenerator>, Matrix<Double>)
public void FillSamples<TGenerator>(
IRandomSource<TGenerator> random,
Matrix<double> samples
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
- random IRandomSource<TGenerator>
- The random number generator to use.
- samples Matrix<Double>
- A vector.
Type Parameters
- TGenerator
- The underlying generator type of the random source, used to enable optimizations like inlining.
Remarks
This method fills the rows of the matrix specified by samples, with random samples from the distribution.
Exceptions
| Argument | samples is null. -or- random is null. |
| Dimension | The number of columns of samples does not equal the Order of the distribution. |
FillSamples(Random, Matrix<Double>)
public void FillSamples(
Random random,
Matrix<double> samples
)Parameters
Remarks
This method fills the rows of the matrix specified by samples, with random samples from the distribution.
Exceptions
| Argument | samples is null. -or- random is null. |
| Dimension | The number of columns of samples does not equal the Order of the distribution. |