7 lines
121 B
Text
7 lines
121 B
Text
|
|
fn RMS arr =
|
||
|
|
(
|
||
|
|
local sumSquared = 0
|
||
|
|
for i in arr do sumSquared += i^2
|
||
|
|
return (sqrt (sumSquared/arr.count as float))
|
||
|
|
)
|