def max(cp, size): _check_params(len(cp), size) if len(cp) == 0: return 0 return __builtin__.max(abs(sample) for sample in _get_samples(cp, size))