CrossEntropyProgramRun Method |
Namespace: Novacta.Analytics.Advanced
protected CrossEntropyResults Run( CrossEntropyContext context, int sampleSize, double rarity )
Exception | Condition |
---|---|
ArgumentNullException | context is null. |
ArgumentOutOfRangeException | sampleSize 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. |
For a thorough description of the method, see the remarks about the CrossEntropyProgram class.