UMIS SDK
    Preparing search index...

    Function percentile

    • The value at percentile p (0 to 100) of sorted, a list in ascending order, by the nearest-rank definition: the element at the 1-based rank ceil(p / 100 ยท n), which is the smallest element for p = 0 and the largest for p = 100. The list is not checked for order.

      Parameters

      • sorted: readonly number[]
      • p: number

      Returns number