protected CrossEntropyResults Run(
CrossEntropyContext context,
int sampleSize,
double rarity
)Protected Function Run (
context As CrossEntropyContext,
sampleSize As Integer,
rarity As Double
) As CrossEntropyResultsprotected:
CrossEntropyResults^ Run(
CrossEntropyContext^ context,
int sampleSize,
double rarity
)member Run :
context : CrossEntropyContext *
sampleSize : int *
rarity : float -> CrossEntropyResults For a thorough description of the method, see the remarks about the CrossEntropyProgram class.
| 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. |