Click or drag to resize

PartitionOptimizationContextPartialSample Method

Draws the specified subset of a sample from a distribution characterized by the given parameter, using the stated random number generator. Used when executing the sampling step of a CrossEntropyProgram running in this context.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
protected override void PartialSample(
	double[] destinationArray,
	Tuple<int, int> sampleSubsetRange,
	RandomNumberGenerator randomNumberGenerator,
	DoubleMatrix parameter,
	int sampleSize
)

Parameters

destinationArray
Type: SystemDouble
The destination array that receives the overall sampled data.
sampleSubsetRange
Type: SystemTupleInt32, Int32
The range specifying the subset of sampled points to draw.
randomNumberGenerator
Type: Novacta.AnalyticsRandomNumberGenerator
The random number generator exploited to sample.
parameter
Type: Novacta.AnalyticsDoubleMatrix
The parameter characterizing the probability distribution from which the sample subset must be drawn.
sampleSize
Type: SystemInt32
The overall sample size.
Remarks

This method has been implemented to support the optimization of functions whose arguments are partitions.

See Also