23 lines
501 B
Python
23 lines
501 B
Python
class statistics_numbers (object):
|
|
min = 0.0
|
|
mean = 0.0
|
|
max = 0.0
|
|
sigma = 0.0
|
|
|
|
|
|
|
|
def statistics_calc(data_in):
|
|
"calculates the min/max/mean/stdev of an array"
|
|
temp = statistics_numbers();
|
|
temp.mean = mean (data_in)
|
|
temp.min = min (data_in)
|
|
temp.max = max (data_in)
|
|
temp.stdev = stdev(data_in)
|
|
|
|
|
|
ref_jit_amplt_mean = mean(scan_result.getReadable(0))
|
|
|
|
ref_jit_amplt2 = statistics_numbers();
|
|
ref_jit_amplt2 = statistics_calc(scan_result.getReadable(0)[0:29])
|
|
|