Statistical comparison of two one-dimensional arrays
Code: "stat_compare_p0d.py"
Programming language: Python
DMelt Version 1. Last modified: 12/10/2015. License: Free
http://jwork.org/dmelt/code/cache/stat_compare_p0d_5993.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.



from jhplot import *
p1=P0D([0,1,1,2,3,5,8,13,21,34,55,89])
p2=P0D([1,1,1,2,3,5,8,13,21,34,55,89])
s1=p1.getStat()
s2=p2.getStat()
for key in s1:
  s=s1[key]-s2[key]
  if (s != 0): 
     print "Diff for ",key,'=',s1[key],' vs ',s2[key]