chmean {RandomWalker} | R Documentation |
Cumulative Harmonic Mean
Description
A function to return the cumulative harmonic mean of a vector.
Usage
chmean(.x)
Arguments
.x |
A numeric vector |
Details
A function to return the cumulative harmonic mean of a vector.
1 / (cumsum(1 / .x))
Value
A numeric vector
Author(s)
Steven P. Sanderson II, MPH
See Also
Other Vector Function:
cgmean()
,
ckurtosis()
,
cmean()
,
cmedian()
,
crange()
,
csd()
,
cskewness()
,
cvar()
,
euclidean_distance()
,
kurtosis_vec()
,
rw_range()
,
skewness_vec()
Examples
x <- mtcars$mpg
chmean(x)
[Package RandomWalker version 0.3.0 Index]