I have a set of graphs with a large primary peak and a secondary peak that intersects the first and I want to fit two curves (one per peak) and find the point at which the two curves intersect for thresholding reasons.
The problem is that the way the curves are fit has to be exactly repeatable and algorithmic in order to reduce my error margin for comparison purposes. Is there a curve fitting method that returns a set of curves, one for each peak found?
If it helps, I'm writing this in IDL.