The number returned is the correlation coefficient. The sign of the correlation coefficient is the same as the slope. A correlation coefficient of 1 indicates that all the variation in the y-parameter is explained by a perfect linear relationship with x. A correlation coefficient of zero indicates there is no linear linear between x and y.
LinFit.Crunch() must be called before the return value is meaningful.
Goodness = LinFit.CorrCoef() | ||
Goodness | REAL |
The linear fit's correlation coefficient. |