Displaying 1 result from an estimated 1 matches for "xharm".
Did you mean:
harm
2024 Jan 30
2
Use of geometric mean for geochemical concentrations
...ten: maybe because of the problematic handling of 0.
I do have in the meantime a nice workaround for 0 (which also works with the geometric mean), see also (unfortunately not well documented):
https://github.com/discoleo/R/blob/master/Stat/Moments.Stat.R
v0 = 1; # some initial "skew"
1 /(xharm + v0) = sum( 1 / (x + v0) ) / length(x)
xgeom = prod(x + v0)^(1/length(x)) - v0;
I apologize for the late reply; I did not have much time to read messages during the past weeks.
Sincerely,
Leonard
[[alternative HTML version deleted]]