ichigyou
    Preparing search index...

    Function mean

    • Calculates the mean (average) of an array of numbers.

      Parameters

      • arr: number[]

        The array of numbers.

      Returns number

      The mean of the array. If the array is empty, returns NaN.