From 597398a34bb7a275ba8160e08690f356072be985 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Thu, 29 May 2014 13:55:05 -0400 Subject: [PATCH] * Added missing function (rms). --- math/stats/array_stats.py | 4 ++++ 1 file changed, 4 insertions(+) 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).