The attached function pulls out the local maxes from the dataset. Then the main code plots an exponential curve to it.