Fit curve to data, get analytical form, & check when curve crosses threshold
问题 I have 40 points for each curve and I would like to smooth the function and estimate when the curve crosses a threshold on the y axis. Is there a fitting function that I can easily apply this to, I can use interpolate to plot the new function but I can't figure out how to request the x value for which y = threshold. Unfortunately the curves don't all have the same shape so I can't use scipy.optimize.curve_fit. Thanks! Update: Adding two curves: Curve 1 [942.153,353.081,53.088,125.110,140.851