quantile computes the deciles of a list given as first
argument, where the decile is the second argument.
Input :
quantile([0,1,3,4,2,5,6],0.25)
Output the first quartile :
[1.0]
Input :
quantile([0,1,3,4,2,5,6],0.5)
Output the median :
[3.0]
Input :
quantile([0,1,3,4,2,5,6],0.75)
Output the third quartile :
[4.0]
quartiles computes the minimum, the first quartile, the
median, the third quartile and the maximum of a list.
Input :
quartiles([0,1,3,4,2,5,6])
Output :
[[0.0],[1.0],[3.0],[4.0],[6.0]]