public static class SwitchStrategy.RangesStrategy extends SwitchStrategy
SwitchStrategy.BaseSwitchClosure, SwitchStrategy.BinaryStrategy, SwitchStrategy.RangesStrategy, SwitchStrategy.SequentialStrategy| Modifier and Type | Field and Description |
|---|---|
private Integer[] |
indexes |
keyConstants, keyProbabilities| Constructor and Description |
|---|
RangesStrategy(double[] keyProbabilities,
JavaConstant[] keyConstants) |
| Modifier and Type | Method and Description |
|---|---|
void |
run(SwitchStrategy.SwitchClosure closure) |
getAverageEffort, getBestStrategy, getSliceEnd, registerDefaultEffort, registerEffort, toStringpublic RangesStrategy(double[] keyProbabilities, JavaConstant[] keyConstants)
public void run(SwitchStrategy.SwitchClosure closure)
run in class SwitchStrategy