Script execution

This commit is contained in:
kalt_r
2016-07-01 08:54:55 +02:00
parent 9f9c64ffe8
commit 75fe40db4e

View File

@@ -11,6 +11,12 @@ class all_statistics_data (object):
m5 = statistics_data()
m10 = statistics_data()
def print(self):
print "Statistics:\t\tmin\tmean\tmax\tstdev
print "Saturation :" + str(self.sat.min) + "\t" + str(self.sat.mean) + "\t" + str(self.sat.max) + "\t" + str(self.sat.stdev)
print "5% out of sat :" + str(self.m5.min) + "\t" + str(self.m5.mean) + "\t" + str(self.m5.max) + "\t" + str(self.m5.stdev)
print "10% out of sat:" + str(self.m10.min) + "\t" + str(self.m10.mean) + "\t" + str(self.m10.max) + "\t" + str(self.m10.stdev)
def statistics_calc(data_in):
"function calculates the min/max/mean/stdev of an array"