Function percentile

  • Calculates the q-th percentile of a tensor.

    Parameters

    • t: Tensor

      the input tensor

    • q: number | number[]

      the percentile to compute

    Returns number | number[]

    the range