Skip to contents

Single-pass C++ kernel. Equivalent to mean(x).

Usage

morie_mean(x)

Arguments

x

See Usage.

Value

A numeric scalar: the mean of x.

Examples

rmorie:::morie_mean(1:10)
#> [1] 5.5