Click or drag to resize

CrossEntropyProgramRun Method

Runs this Cross-Entropy program in the specified context.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
protected CrossEntropyResults Run(
	CrossEntropyContext context,
	int sampleSize,
	double rarity
)

Parameters

context
Type: Novacta.Analytics.AdvancedCrossEntropyContext
The context in which the program must be executed.
sampleSize
Type: SystemInt32
The size of the samples drawn during the sampling step of the Cross-Entropy method.
rarity
Type: SystemDouble
The rarity applied by the Cross-Entropy method.

Return Value

Type: CrossEntropyResults
The results of the Cross-Entropy program.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext is null.
ArgumentOutOfRangeExceptionsampleSize is not positive.
-or-
rarity is not positive.
-or-
rarity is not less than 1.
ArgumentException The EliteSampleDefinition of context is HigherThanLevel and applying Ceiling(Double) to expression sampleSize*(1.0 -rarity) is not lower than sampleSize.
-or-
The EliteSampleDefinition of context is LowerThanLevel and applying Ceiling(Double) to expression sampleSize*(rarity) is not lower than sampleSize.
Remarks

For a thorough description of the method, see the remarks about the CrossEntropyProgram class.

See Also