| ProbabilityDistributionOnSample Method |
Called when drawing a sample from this instance having the given size
and returns it
in a given destination array.
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax protected virtual void OnSample(
int sampleSize,
double[] destinationArray,
int destinationIndex
)
Protected Overridable Sub OnSample (
sampleSize As Integer,
destinationArray As Double(),
destinationIndex As Integer
)
protected:
virtual void OnSample(
int sampleSize,
array<double>^ destinationArray,
int destinationIndex
)
abstract OnSample :
sampleSize : int *
destinationArray : float[] *
destinationIndex : int -> unit
override OnSample :
sampleSize : int *
destinationArray : float[] *
destinationIndex : int -> unit
Parameters
- sampleSize
- Type: SystemInt32
The sample size. - destinationArray
- Type: SystemDouble
The destination array that
receives the sampled data. - destinationIndex
- Type: SystemInt32
The index in
destinationArray at which storing
begins.
Remarks
The OnSample(Int32, Double, Int32) method allows
derived classes to
implement their own algorithm to draw a sample.
Notes to Inheritors
When overriding OnSample(Int32, Double, Int32),
you can take for
granted that sampleSize is greater than 0
and less than or equal to the
difference between the length of
parameter destinationArray and
destinationIndex, and
consists, on input, of zeroed entries.
See Also