Fills part of a list with random numbers from the distribution.
Namespace:
Extreme.Statistics.Distributions
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual void SampleInto(
Random random,
IList<double> samples,
int startIndex,
int length
)
Public Overridable Sub SampleInto (
random As Random,
samples As IList(Of Double),
startIndex As Integer,
length As Integer
)
public:
virtual void SampleInto(
Random^ random,
IList<double>^ samples,
int startIndex,
int length
)
abstract SampleInto :
random : Random *
samples : IList<float> *
startIndex : int *
length : int -> unit
override SampleInto :
random : Random *
samples : IList<float> *
startIndex : int *
length : int -> unit
Parameters
- random
- Type: SystemRandom
A Random object that specifies the
uniform random number generator that is to be used to generate the samples. - samples
- Type: System.Collections.GenericIListDouble
A IListDouble. - startIndex
- Type: SystemInt32
The zero-based index at which to begin filling the list. - length
- Type: SystemInt32
The number of samples to provide.
This method fills a block of length elements of samples,
starting at index startIndex with random samples from the distribution.
Reference