CLsqFit:GetRangeObs
The GetRangeObs method returns the minimum and maximum values of the observations, or independent variable, in the data sample.
nMinY,nMaxY = CLsqFit:GetRangeObs( nChannel* ) |
This method returns the limiting values of the observations, or "y" values, in the sample data. If the data have multiple channels, you must specify which channel to return.
The following example returns the minimum and maximum y ("observation") values in the data:
|
-- create a CLsqFit object |
|
-- set 2 coefficients |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Fit the line |
|
-- find the minimum and maximum x values |
|
-- Result: 2, 70 |