Is there a numpy max min function?

后端 未结 1 873
醉话见心
醉话见心 2021-01-07 23:00

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,          


        
相关标签:
1条回答
  • 2021-01-07 23:56

    Indeed there is such a function -- it's called numpy.ptp() for "peak to peak".

    0 讨论(0)
提交回复
热议问题