smbinterp/lib/tools.py

13 lines
178 B
Python
Raw Normal View History

2009-12-27 09:48:27 -08:00
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