| Modifier and Type | Field and Description |
|---|---|
| private final RandomGenerator | random
Random generator to use for selecting pivot. |
| private static final long | serialVersionUID
Serializable UID. |
| Access | Constructor and Description |
|---|---|
| public | RandomPivotingStrategy(final RandomGenerator
random generator to use for selecting pivot random)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The index corresponding to a random uniformly selected value between first and the last indices of the array slicedata array work, final int index of the first element of the slice begin, final int index after the last element of the slice end)Implements org. Find pivot index of the array so that partition and Kth element selection can be made A uniform random pivot selection between begin and end indices |
| random | back to summary |
|---|---|
| private final RandomGenerator random Random generator to use for selecting pivot. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable UID. | |
| RandomPivotingStrategy | back to summary |
|---|---|
| public RandomPivotingStrategy(final RandomGenerator random) Simple constructor.
| |
| pivotIndex | back to summary |
|---|---|
| public int pivotIndex(final double[] work, final int begin, final int end) throws MathIllegalArgumentException Implements org. Doc from org. Find pivot index of the array so that partition and Kth element selection can be made A uniform random pivot selection between begin and end indices
| |