klyn.math.NDArray.percentile
method
public percentile(notnull q as IList<Double>, axes as IList<Long> = null, method as QuantileMethod = QuantileMethod.Linear, keepDims as Boolean = false, ignoreNaN as Boolean = false, where as Boolean[] = null) as NDArray<Double>
Description

Several sample percentiles, sharing quantile selection and scratch storage.

Parameters
ParameterDescription
qNon-empty list of percentages in [0,100].
axesDistinct reduction axes, or null for all axes.
methodInterpolation method.
keepDimsRetain reduced axes; requested percentages form the leading axis.
ignoreNaNSkip NaNs; otherwise propagate them.
whereOptional flat Boolean mask.
Returns

Double percentile tensor, source unchanged.

Throws
  • ValueException for invalid percentages/axes/mask or no observations.
  • IndexException for invalid axes.
  • NullException if q is null at runtime; statically null arguments are rejected with TypeError.
Example

quartiles = data.percentile([25.0, 50.0, 75.0])