|
Statistical comparison of two one-dimensional arrays
Source code name: "stat_compare_p0d.py"
Programming language: Python
Topic: Statistics/Tests
DMelt Version 1. Last modified: 12/11/2015. License: Free
https://datamelt.org/code/cache/stat_compare_p0d_3505.py
To run this script using the DataMelt 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]