quantile(a,p)

Using the values stored in array a, returns the value x such that 100 p % of values are smaller or equal than x. The percent p must be a number between 0. and 1.0. For instance, if p=0.25, the function returns the first quartile. The returned value may not be in the data set.


See also mean mode median quantileInverse 


Example


a = ( 1, 2, 3, 4, 4, 3, 2, 4, 5, 4, 3, 3 );

quantile( a, .25 )

2.75