def get_max(skx, sample): max_ratio = [] error_names = get_errors(skx, sample) for error in error_names: pos_max = max(convert(skx, sample, error)) neg_max = min(convert(skx, sample, error)) max_ratio.append(max(pos_max, abs(neg_max))) return max_ratio
def get_sum(skx, sample): sum_ratio = [] error_names = get_errors(skx, sample) for error in error_names: sum = 0 for bin in convert(skx, sample, error): sum= sum + (bin) sum_ratio.append(sum) return sum_ratio
def get_sum(skx, sample): sum_ratio = [] error_names = get_errors(skx, sample) for error in error_names: sum = 0 for bin in convert(skx, sample, error): sum = sum + (bin) sum_ratio.append(sum) return sum_ratio