Options
All
  • Public
  • Public/Protected
  • All
Menu

Module mean

Index

Functions Math

Math Functions

  • mean(array: number[]): number
  • Computes the mean of the values in array.

    since

    5.11.0

    example
    mean([4, 2, 8, 6])
    // => 5

    Parameters

    • array: number[]

      The array to iterate over.

    Returns number

    Returns the mean.