RegModels.LineDeriv Method

procedure LineDeriv(RegressFun: TRegressFun; X: Double; Y: Double; const Pars: TDoubleArray; const Grad: TVec; const fp: TMtxFloatPrecision);

Derivatives of linear function.

#NameTypeDescription
1RegressFunTRegressFun
2XDoublescalar
3YDoublescalar
4ParsTDoubleArray
5GradTVec
6fpTMtxFloatPrecision

Result: stored in self (calling object)

Remarks:

Calculates the derivatives of linear function at point (X,Y) with respect to the regression parameters Pars. The results are returned in Grad vector. Grad.Values[I] contains the derivative with respect to the I-th parameter. The Length and Complex properties of the Grad vector are adjusted automatically.

See Also: RegModels.LineEval, RegModels.LineFit