public quantile(q as Double, method as QuantileMethod = QuantileMethod.Linear, ignoreNaN as Boolean = false, where as Boolean[] = null) as Double
Exact sample quantile with q in [0,1]. Source data is never sorted or changed. Expected O(N) selection, O(N log N) worst case; O(N) scratch.
| Parameter | Description |
|---|---|
q | Requested quantile; 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.quantile(0.5)