Documentation of 'org.apache.commons.math3.util.CentralPivotingStrategy' Java class
CentralPivotingStrategy
org.apache.commons.math3.util

Class CentralPivotingStrategy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CentralPivotingStrategy

        public CentralPivotingStrategy()
    • Method Detail

      • pivotIndex

        public int pivotIndex(double[] work,
                              int begin,
                              int end)
                       throws MathIllegalArgumentException
        Find pivot index of the array so that partition and Kth element selection can be made This in particular picks a average of begin and end indices
        Specified by:
        pivotIndex in interface PivotingStrategyInterface
        Parameters:
        work - data array
        begin - index of the first element of the slice
        end - index after the last element of the slice
        Returns:
        The index corresponding to a simple average of the first and the last element indices of the array slice
        Throws:
        MathIllegalArgumentException - when indices exceeds range

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.