Documentation
    Preparing search index...

    Variable harmonicMeanConst

    harmonicMean: (values: number[]) => number

    Harmonic mean of all values in the array If the array is empty, it throws an error

    Type declaration

      • (values: number[]): number
      • Parameters

        • values: number[]

        Returns number

    import { harmonicMean } from '@kitsuyui/mymath'
    harmonicMean([1, 2, 3, 4]) // => 1.9200000000000004