Returns the geometric mean.
| Category: | Descriptive Statistics |
| Returned data type: | DOUBLE |
is any valid expression that evaluates to a nonnegative numeric value.
| Data type | DOUBLE |
| See | <sql-expression> |
| FedSQL Expressions |
be the number of arguments with non-null or nonmissing
values, and let
be the values of those arguments. The geometric
mean is the
root of the product of the values:
|
Statements
|
Results
|
|---|---|
select geomean(1,2,2,4); |
2 |
select geomean(.,2,4,8); |
4 |