Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
atoti.array.quantile_index(measure, /, q, *, mode=‘inc’, interpolation=‘lower’)
Return a measure equal to the index of requested quantile of the elements of the passed array measure.- Parameters:
- measure (VariableMeasureConvertible) – The measure to get the quantile of.
-
q ( _Quantile) – The quantile to take.
For instance,
0.95is the 95th percentile and0.5is the median. -
mode (Literal [ ‘simple’ , ‘centered’ , ‘inc’ , ‘exc’ ]) –
The method used to calculate the index of the quantile.
Available options are, when searching for the q quantile of a vector
X:simple:len(X) * qcentered:len(X) * q + 0.5exc:(len(X) + 1) * qinc:(len(X) - 1) * q + 1
-
interpolation (Literal [ ‘higher’ , ‘lower’ , ‘nearest’ ]) –
If the quantile index is not an integer, the interpolation decides what value is returned.
The different options are, considering a quantile index
kwithi < k < jfor the original vectorXand the sorted vectorY:lowest: the index inXofY[i]highest: the index inXofY[j]nearest: the index inXofY[i]orY[j]depending on which ofiorjis closest tok
- Return type: MeasureDefinition