Click or drag to resize

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
)

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