I have a fairly large 1-dimensional array that I am trying to cluster. I came across several other questions on this site where the top answer is to use a Kernel Density Estimation and then locate local minima: Determine different clusters of 1d data from database and Alternative to Otsu for dividing data into two groups.
I have successfully used SciPy's gaussian_kde function to generate KDE's for my data, and they plot beautifully, but how do I calculate the local minima?