Function quantileIndex

  • Similar to quantile, but returns the index to the left of p.

    Parameters

    • iterable: Iterable<Numeric>
    • p: number

    Returns number

  • Similar to quantile, but returns the index to the left of p.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>
    • p: number
    • accessor: ((element, i, array) => number)
        • (element, i, array): number
        • Parameters

          • element: T
          • i: number
          • array: Iterable<T>

          Returns number

    Returns number