Author |
Topic  |
|
jonni
United Kingdom
58 Posts |
Posted - 02/09/2004 : 10:15:35 AM
|
trying to fit data with the following macro:
%C=Data1_c; // selecting data to fit
nlsf.xBegin=0.015;// setting the range nlsf.xEnd=0.0175; // of fitting
run.section(fit,Fit1Peak,Gauss); //fitting
problem is that xBegin and xEnd do no change the fitting range, and whole curve is fitted.
how to specify fitting range??
many thanks
Evgeniy
|
|
greg
USA
1379 Posts |
Posted - 02/09/2004 : 10:46:32 AM
|
Easiest may be to use row index to set the range (this is the way the Data Selector tool works):
mks1=4;mks2=16; // Set fitting range to use from row 4 to 16 in plot run.section(fit,Fit1Peak,Gauss);
|
 |
|
jonni
United Kingdom
58 Posts |
Posted - 02/09/2004 : 11:15:04 AM
|
Hi greg,
is it right that you suggested to do the following:
mks1=xindex(0.015,%C); mks2=xindex(0.0174,%C); ???
|
 |
|
jonni
United Kingdom
58 Posts |
Posted - 02/09/2004 : 11:18:52 AM
|
what is very strange after when i change mks1,mks2 values the following: data1_a=data1_a-0.1 changes values of the data1_a ONLY for the values between mks1 and mks2. how doing data1_a=data1_a-0.1 change whole rows in data1, but not just between markers...
i tried mks1=-1, it didn't help
:(
|
 |
|
greg
USA
1379 Posts |
Posted - 02/09/2004 : 12:58:20 PM
|
Setting the markers will limit all math, analysis and fitting to the marker range. Setting the MKS1 value to -1 will restore a plot to full range.
|
 |
|
jonni
United Kingdom
58 Posts |
Posted - 02/09/2004 : 1:51:05 PM
|
unfortunatelly mks1=-1 doesn't help,
even after mks1=-1; data1_a=data1_a+0.1 modifies only the region between previously defined markers :(
|
 |
|
|
Topic  |
|