I have histograms with a global maximum (always positive) and a local maximum (always negative). Example see here. I want to find the distance between the 2 maximas in python 2.7.
Same question but for C#: here.
For finding the global max: the solution of Guest helped me.
When I can find the local maxima I can calculate the distance to the global maxima. Can someone help?
Update: I found out how to smooth my histogram from the solution of Justin Peel: here
Now I have this function and I want to calculate the distance between the maxima.