quantile#
- swordfish.function.quantile()#
Return values at the given quantile in X.
- Parameters:
X (Constant) – A numeric vector, matrix or table.
q (Constant) – A floating number between 0 and 1.
interpolation (Constant, optional) –
A string indicating how to interpolate if the quantile is between element i and j in X with i<j. It can take the following values:
’linear’ (default): i+(j-i)*fraction, where fraction is the decimal part of q*size(X).
’lower’: i
’higher’: j
’nearest’: i or j whichever is nearest.
’midpoint’: (i+ j)/2