gmean

Computes the geometric average of the input.

By default, if F is not floating point type, then the result will have a double type if F is implicitly convertible to a floating point type.

  1. gmeanType!F gmean(Range r)
  2. gmeanType!Range gmean(Range r)
    @fmamath
    gmeanType!Range
    gmean
    (
    Range
    )
    (
    Range r
    )
    if (
    isIterable!Range
    )
  3. gmeanType!F gmean(F[] ar)

Parameters

r Range

range, must be finite iterable

Return Value

Type: gmeanType!Range

The geometric average of all the elements in the input, must be floating point type

See Also

Meta