Mwnci geomean() Function

Syntax

geomean(array)

Description

The geomean() function returns the average value or mean which signifies the central tendency of the set of numbers by finding the product of their values.

Example

include("stats")
Data=[1,4,7,3,9,20,22]
GM=geomean(Data)
println("The geometric mean of: ", Data, " is ", GM)


The geometric mean of: [1, 4, 7, 3, 9, 20, 22] is 6.149693852153373