smbinterp/lib/tools.py
Stephen Mardson McQuay 961b3b7b26 init
2009-12-27 10:48:27 -07:00

13 lines
178 B
Python

import numpy as np
def rms(errors):
"""
root mean square calculation
"""
r = 0.0
for i in errors:
r += np.power(i, 2)
r = np.sqrt(r / len(errors))
return r