public percentile(q as Double, method as QuantileMethod = QuantileMethod.Linear, ignoreNaN as Boolean = false, where as Boolean[] = null) as Double
Exact sample percentile with q in [0,100]. Source data is never sorted or changed. Expected O(N) selection, O(N log N) worst case; O(N) scratch.
| Parameter | Description |
|---|---|
q | Requested percentile; finite and within its documented range. |
method | Rank interpolation; default Linear, nearest ties to even. |
ignoreNaN | Skip NaNs; otherwise propagate them. |
where | Optional flat Boolean mask, one entry per source element. |
Scalar Double.
middle = data.percentile(0.5)