Multivariate Continuous Distribution.Fill Sample Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Overload List
| Fill | Fills a vector with a random sample from the distribution. |
| Fill | Fills a span with a random sample from the distribution. |
| Fill | Fills a vector with a random sample from the distribution. |
| Fill | Fills a Double array with random numbers. |
| Fill | Fills a span with a random sample from the distribution. |
| Fill | Fills a vector with a random sample from the distribution. |
| Fill | Fills a vector with a random sample from the distribution. |
| Fill | Fills a vector with a random sample from the distribution. |
| Fill | Fills a span with a random sample from the distribution. |
FillSample<TGenerator>(TGenerator, Vector<Double>)
protected virtual void FillSample<TGenerator>(
ref TGenerator generator,
Vector<double> sample
)
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 vector specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample<TGenerator>(TGenerator, Span<Double>)
protected abstract void FillSample<TGenerator>(
ref TGenerator generator,
Span<double> sample
)
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 vector specified by sample, with a single sample from the distribution.
Exceptions
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample(IRandomSource, Vector<Double>)
public void FillSample(
IRandomSource random,
Vector<double> sample
)Parameters
- random IRandomSource
- The random number generator to use.
- sample Vector<Double>
- A vector.
Remarks
This method fills the vector specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample(IRandomSource, Span<Double>)
public void FillSample(
IRandomSource random,
Span<double> sample
)Parameters
- random IRandomSource
- The random number generator to use.
- sample Span<Double>
- A span.
Remarks
This method fills the span specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample<TGenerator>(IRandomSource<TGenerator>, Vector<Double>)
public void FillSample<TGenerator>(
IRandomSource<TGenerator> random,
Vector<double> sample
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
- random IRandomSource<TGenerator>
- The random number generator to use.
- sample Vector<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 vector specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample<TGenerator>(IRandomSource<TGenerator>, Span<Double>)
public void FillSample<TGenerator>(
IRandomSource<TGenerator> random,
Span<double> sample
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
- random IRandomSource<TGenerator>
- The random number generator to use.
- sample Span<Double>
- A span.
Type Parameters
- TGenerator
- The underlying generator type of the random source, used to enable optimizations like inlining.
Remarks
This method fills the span specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample(Random, Vector<Double>)
public void FillSample(
Random random,
Vector<double> sample
)Parameters
Remarks
This method fills the vector specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample(Random, Double[])
public void FillSample(
Random random,
double[] sample
)Parameters
Remarks
This method fills the array specified by sample, with random samples from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |
FillSample(Random, Span<Double>)
public void FillSample(
Random random,
Span<double> sample
)Parameters
Remarks
This method fills the span specified by sample, with a single sample from the distribution.
Exceptions
| Argument | sample is null. -or- random is null. |
| Dimension | The length of sample does not equal the Order of the distribution. |