• Calculates the mean of an array.

    Parameters

    • arr: number[]

      The array

    • Optional type: "arithmetic" | "geometric" | "harmonic" = "arithmetic"

      The type of mean, which can be "arithmetic", "geometric", or "harmonic"

    Returns number

Generated using TypeDoc