Returns an array of scalar values that correspond to specified percentile values. Uses "approximate" method by default.

If 'expr.method' is "approximate", we return the closest value to the computed percentile from the dataset. If 'expr.method' is "exact", we return the computed percentile value as is which may not be found in the dataset.

  • Parameters

    • collection: unknown[]

      The collection of objects.

    • expr: unknown

      The operator expression.

    • options: Options

      Options to use for processing.

    Returns number[]