Curve fit, bound by reality
dveldred
F(x) = (Si - (Si - S0)*exp(-x/Tch))*exp(-x/Trho) - S0
The equation can be broken into two components:
Frho(x) = S0*exp(-x/Trho)
Fch(x) = exp(-x/Tch) + S0
In short, at no x can F(x) > Frho(x) or F(x) > Fch(x) (excluding error of observation of course).
I am new to Igor, and mostly obtaining help through a colleague, but neither of us had a good idea of how to approach the solution to this problem. Thank you for your assistance.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 18, 2009 at 02:19 pm - Permalink
I'm Don's Igor-using colleague. I don't have any experience with trying to return values to the CurveFit algorithm. Do you have any advice as to how to do this?
Thanks,
-Jeremy
February 20, 2009 at 04:38 am - Permalink
>Do you have any advice as to how to do this?
I think John was referring to returning a NaN as the curve-fitting function result. I'm referring to your user-defined curve-fitting function whose name you pass to FuncFit.
February 21, 2009 at 12:44 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 23, 2009 at 02:49 pm - Permalink