Function average

  • Computes the average of the iterable sequence.

    Parameters

    • source: Iterable<number>

      The source iterable sequence to compute the average.

    • Optional options: MathOptions<number>

      The options for calculating the average.

    Returns number

    The computed average for the iterable sequence.

  • Computes the average of the iterable sequence.

    Type Parameters

    • T

      The type of elements in the source sequence.

    Parameters

    • source: Iterable<T>

      The source iterable sequence to compute the average.

    • Optional options: MathOptions<T>

      The options for calculating the average.

    Returns number

    The computed average for the iterable sequence.

Generated using TypeDoc