diff --git a/math/stats/array_stats.py b/math/stats/array_stats.py index 6057eb1..f87c239 100644 --- a/math/stats/array_stats.py +++ b/math/stats/array_stats.py @@ -33,6 +33,10 @@ PRINCIPLES statement. """ +def rms(m): + return numpy.sqrt(numpy.sum(m**2) / m.size) + + def report_diff_stat(M1, M2, out=sys.stdout): # Original function name: statdiff """Studies the difference of two arrays (or matrices).