@leanchuck/core - v0.1.1
    Preparing search index...

    Function summarize

    • Produces a Summary (count, sum, min, max, mean, median) for a population of values in a single pass plus one sort for the median.

      Parameters

      • values: readonly number[]

        The population of numbers.

      • precision: number = 4

        Decimal places to round to. Defaults to 4.

      Returns Summary

      The computed Summary.