public percentile(q as Double, axes as IList<Long>, method as QuantileMethod = QuantileMethod.Linear, keepDims as Boolean = false, ignoreNaN as Boolean = false, where as Boolean[] = null, result as NDArray<Double> = null) as NDArray<Double>
Exact sample percentile with q in [0,100] by axes; O(largest slice) reusable scratch, source unchanged.
| Parameter | Description |
|---|---|
axes | Axis selection; negative indices are accepted. |
q | Requested percentile; finite and within its documented range. |
method | Rank interpolation; default Linear, nearest ties to even. |
keepDims | Keep reduced dimensions with length one. |
result | Optional non-aliased, shape-compatible destination reused without allocation. |
ignoreNaN | Skip NaNs; otherwise propagate them. |
where | Optional flat Boolean mask, one entry per source element. |
Reduced Double tensor.
middle = data.percentile(0.5, axis=1)