public class MedianOf3PivotingStrategy extends java.lang.Object implements PivotingStrategyInterface, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serializable UID.
|
| Constructor and Description |
|---|
MedianOf3PivotingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
pivotIndex(double[] work,
int begin,
int end)
Find pivot index of the array so that partition and Kth
element selection can be made
|
private static final long serialVersionUID
public int pivotIndex(double[] work,
int begin,
int end)
throws MathIllegalArgumentException
pivotIndex in interface PivotingStrategyInterfacework - data arraybegin - index of the first element of the sliceend - index after the last element of the sliceMathIllegalArgumentException - when indices exceeds rangeCopyright (c) 2003-2015 Apache Software Foundation