npm.nicfv.com

    Function median

    • Compute the median of a set of numbers.

      Parameters

      • data: number[]

        An array of numeric inputs

      Returns number

      The median of the dataset

      const y = SMath.median([2, 5, 3, 1]); // 2.5
      
    MMNEPVFCICPMFPCPTTAAATR