CLsqFit:GetStatus
The GetStatus method returns a number that gives the status of the least squares fit. If not 0, then you can retrieve error information using GetErrMsg and GetErrChan.
nStatis = CLsqFit:GetStatus() where |
nStatus is a number giving the status of the fit procedure.
The following script fits a line to x and y tables of data. Following the fit, the script checks the status and takes action if the fit failed.
|
-- create a CLsqFit object |
|
-- test whether the fit succeeded |
|
-- exit the script with an error message |
|
-- end of test block |