Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

10 lines
175 B
Python

def variance(x):
m = 0.0
for v in x:
m += v
m /= len(x)
total = 0.0
for v in x:
total += (v - m) * (v - m)
return total / (len(x) - 1)