![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Help wth linear combination analysis
![](/sites/default/files/styles/thumbnail/public/default_images/Artboard%201_1.png?itok=jeHOCIXy)
LJ0630
I have a spectrum (Stot) that's a linear combination of two known spectra (Sa and Sb). I would like to fit Stot , Stot = kSa + (1-k)Sb, and extract k and 1-k for Sa and Sb respectively from this fit. Need help!
Thanks in advance for the help
LJ
same thing for Sb.
And then you use them to define your fit function. You can use "new fit function" and it will generate the following code in your procedure window:
You have only one fit parameter (w[0]).
That should do it.
Julien
August 29, 2017 at 07:59 am - Permalink
August 29, 2017 at 11:02 am - Permalink
Please enclose the code between igor code tags so it displays correctly. These are "igor" and "/igor" surrounded by <>.
August 29, 2017 at 12:59 pm - Permalink
August 29, 2017 at 01:19 pm - Permalink
These are not the names of the defined functions.
You should have:
Sa and Sb are the waves' names, not the functions' names.
August 29, 2017 at 02:18 pm - Permalink
August 30, 2017 at 07:02 am - Permalink
display wave_y vs wave_x
If your wave giving the x axis is monotonic (I suspect it is since you talk about wavelength) you might succeed using the following to define your functions
That said, I would strongly suggest that you resample your data using interpolation, in order to have evenly spaced data points. That is what I usually do to deal with nm/eV.
That will make things much easier.
August 30, 2017 at 07:52 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 30, 2017 at 09:04 am - Permalink
September 1, 2017 at 12:21 pm - Permalink
Also, I have Stot at a series of time points. Is there a way to fit more than one spectrum at a time?
September 1, 2017 at 12:30 pm - Permalink
As far as fitting lots of data sets, check out the Batch Curve Fitting package. Start with the demo: File->Example Experiments->Curve Fitting->Batch Curve Fitting Demo.
If you mean that you wish to do a single fit that includes many data sets, then you need the Global Fit package. File->Example Experiments->Curve Fitting->Global Fit Demo.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 1, 2017 at 03:26 pm - Permalink