ts-utils
    Preparing search index...

    Function median

    • Compute the median of the given numbers.

      The middle number; found by ordering all data points and picking out the one in the middle (or if there are two middle numbers, taking the mean of those two numbers).

      Parameters

      • ...numbers: number[]

        The numbers used to compute the median.

      Returns number

      The median of the numbers.