Download QCMatPack Matrix and Numerical Analysis Software - Quinn

Transcript
Curve Fitting 97
Parameters
order
Set the maximum order of the polynomial.
regcoef Returns the calculated curve fit coefficients. The coefficients are returned in
an array, elements [0] to [order].
regstats Returns curve fit statistics.
Return Value
Returns an error code.
RegStats class
Public Instance Properties
ovfst
r
rsq
see
sigflag
sumressq
Get/Set overall F statistic
Get/Set multiple correlation coefficient (Rvalue)
Get/Set coefficient of determination (RSquared)
Get/Set Returns the Standard error of
estimate (
Get/Set significance of regression flag
Get/Set sum of residuals squared
Method CurveFit.exponentialSolve
This method fits the data to an exponential equation of the form:
y = aebx.
The exponentialSolve method returns the solution coefficients a and b in the equation
above. All values of y must be positive.
public int exponentialSolve (
DDMat regcoef,
RegStats regstats
);
Parameters
regcoef Returns the calculated curve fit coefficients. The (a) coefficient is returned in
the array element [0] and the (b) coefficient is returned in the array element
[1].