gm: gmean

Description Usage Arguments Details Author(s) Examples

Description

This function calculates the geometric mean.

Usage

1
gm(x)

Arguments

x

a vector

Details

gm calculates the geometric mean for all positive entries of a vector. Please note that there is a faster version available implemented with Rcpp but it currently do not pass CRAN checks cause of use of Rcpp11 features. This C++ version accounts for over- and underflows. It is placed in inst/doc

Author(s)

Matthias Templ

Examples

1
gm(c(3,5,3,6,7))

robCompositions documentation built on Jan. 13, 2021, 10:07 p.m.