Calculates the mean of an array.
The array
Optional
The type of mean, which can be "arithmetic", "geometric", or "harmonic"
const result = Chalkboard.stat.mean([1, 2, 4, 8], "geometric"); // Returns the geometric mean Copy
const result = Chalkboard.stat.mean([1, 2, 4, 8], "geometric"); // Returns the geometric mean
Calculates the mean of an array.