npm.nicfv.com

    Function avg

    • Compute the average, or mean, of a set of numbers.

      Parameters

      • data: number[]

        An array of numeric inputs

      Returns number

      The average, or mean

      const y = SMath.avg([1, 2, 4, 4]); // 2.75
      
    MMNEPVFCICPMFPCPTTAAATR