public static double selectIncludingZeros ( final double [ ] arr , final int pivot ) { final int arrSize = arr . length ; final int adj = pivot - 1 ; return select ( arr , 0 , arrSize - 1 , adj ) ; }
Gets the 1 - based kth order statistic from the array including any zero values in the array . Warning! This changes the ordering of elements in the given array!