Concept Flow - Percentiles and quantiles
Start with data array
Sort data in ascending order
Choose percentile or quantile value
Calculate position in sorted data
Interpolate if needed
Return value at position
End
We start with data, sort it, pick a percentile or quantile, find its position, interpolate if needed, and return the value.