T O P I C R E V I E W |
gdroogmans |
Posted - 03/18/2004 : 05:06:19 AM I am trying without success to fit several data sets with two different functions, i.e. some data with the first function, others with the second function. Does anyone know a solution for this problem? |
2 L A T E S T R E P L I E S (Newest First) |
gdroogmans |
Posted - 03/18/2004 : 11:35:17 AM Thanks for your fast and ingenious reply |
Mike Buess |
Posted - 03/18/2004 : 08:36:44 AM This is how I would go about it using the NLSF fitter...
1. Function->Edit or New: combine the functions as follows
y = A * func1(x) + (1-A) * func2(x)
2. Action->Dataset: check Fit Multiple datasets at the bottom and Add each dataset to the fitting session.
3. Action->Fit: fix A to 0 or 1 for each dataset and otherwise make sure all parameters are sensibly initialized. Then click one of the iterate buttons.
...Besides fixing A to 0 or 1 you may also need to fix the parameters for the function that is not used to some reasonable values.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 03/18/2004 08:56:47 AM |