harmonic_mean: Calculate harmonic mean

View source: R/analyte_mfi.R

harmonic_meanR Documentation

Calculate harmonic mean

Description

Calculate harmonic mean

Usage

harmonic_mean(.x)

Arguments

.x

A numeric to take the harmonic mean of

Value

A single numeric value

Mean calculation

The calculation of the harmonic mean is as follows:

n\frac{1}{\sum_{i=1}^n \frac{1}{x_i}}

NAs are removed before calculation

Examples

beadplexr:::harmonic_mean(runif(10))


beadplexr documentation built on July 9, 2023, 5:59 p.m.