quantileFromSortedData

Uses definition 7, as per R definitions

Return

the quantile associated with the value of p

Parameters

sortedData

the array of data. It is assumed that the data is already sorted. This requirement is not checked!

p

the percentile, must be within (0, 1)