Geometric Mean: is there a built-in?

前端 未结 9 1748
走了就别回头了
走了就别回头了 2020-11-28 20:45

I tried to find a built-in for geometric mean but couldn\'t.

(Obviously a built-in isn\'t going to save me any time while working in the shell, nor do I suspect ther

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 21:25

    No, but there are a few people who have written one, such as here.

    Another possibility is to use this:

    exp(mean(log(x)))
    

提交回复
热议问题