def PercentileRow(array, p):
 (rows, cols) = array.shape
 index = int(((rows * p) / 100))
 return array[(index,)]

def PercentileRow ( array , p ) : ( rows , cols ) = array . shape index = int ( ( ( rows * p ) / 100 ) ) return array [ ( index , ) ]
selects the row from a sorted array that maps to percentile p .