Skip to main content

//clika-runtime/io.clika.runtime/Ops/quantile

quantile

[common]
fun quantile(input: Tensor, q: Tensor, dim: Long? = null, keepdim: Boolean = false, interpolation: QuantileInterp = QuantileInterp.LINEAR): Tensor

quantile(input: Tensor, q: Tensor, dim: Long? = null, keepdim: Boolean = false, interpolation: QuantileInterp = QuantileInterp.LINEAR): the quantile operator. The q-th quantile of input along dim. q is a scalar or 1-D tensor of probabilities in [0, 1]. Absent dim flattens input first. The output prepends q's shape to the reduced shape; interpolation picks the between-ranks strategy (Linear by default; see QuantileInterp for the full set).

[common]
fun quantile(input: Tensor, q: Double, dim: Long? = null, keepdim: Boolean = false, interpolation: QuantileInterp = QuantileInterp.LINEAR): Tensor

quantile(input: Tensor, q: Double, dim: Long? = null, keepdim: Boolean = false, interpolation: QuantileInterp = QuantileInterp.LINEAR): the number form of quantile, q as a scalar.