Get Running Statistics Values
ave, var, std, skw, kur, count = float.mean(...)
Calculates mean, variance, etc from a set of values and/or table of values.
Parameter | Type | Description |
---|---|---|
v |
number | Value(s) |
tbl |
number | Table(s) of Value(s) |
Returns | Type | Description |
---|---|---|
ave |
number | Mean average |
var |
number | Variance |
std |
number | Standard Deviation |
skw |
number | Skewness |
kur |
number | Kurtosis |
count |
integer | Number of samples |
e.g.
ave = float.mean(12, 34, 56, 78)
-- ave = 45
e.g.
t1 = {12, 34}
t2 = {56, 78}
ave = float.mean(t1, t2)
-- ave = 45