13 lines
178 B
Python
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
|