Revision a53065a09c3fce65a63e137deb5bccb6162e6cff authored by Matthias Templ on 18 November 2020, 20:10:02 UTC, committed by cran-robot on 18 November 2020, 20:10:02 UTC
1 parent 9ae1e67
Raw File
gm.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gm.R
\name{gm}
\alias{gm}
\title{gmean}
\usage{
gm(x)
}
\arguments{
\item{x}{a vector}
}
\description{
This function calculates the geometric mean.
}
\details{
\code{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
}
\examples{
gm(c(3,5,3,6,7))
}
\author{
Matthias Templ
}
back to top