Is There A Numpy "max Minus Min" Function?
Is there a numpy function that gives for a given numpy array its maximum - minimum value, i.e. numpy.max(a) - numpy.min(a) ? e.g. numpy.xxx([4,3,2, 6] = 4 since max = 6, min = 2,
Solution 1:
Indeed there is such a function -- it's called numpy.ptp()
for "peak to peak".
Post a Comment for "Is There A Numpy "max Minus Min" Function?"