harmonic_mean: Calculate Harmonic Mean

Description Usage Arguments Details Value See Also

View source: R/s3_coas.R

Description

This function is used internally by coa_locs() to calculate the harmonic mean of a set of detections.

Usage

1

Arguments

x

A vector of numbers

Details

Calculates the harmonic mean (Wikipedia), which is the reciprocal of the arithmetic mean of the reciprocals, i.e.:

1/(mean(1/x))

Value

Returns a vector of length 1

See Also

Used internally by coa_locs


bsmity13/ADePTR documentation built on Nov. 9, 2019, 12:43 a.m.