void LineDeriv(TRegressFun RegressFun, Double X, Double Y, Double[] Pars, TVec Grad, TMtxFloatPrecision fp)
Derivatives of linear function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | RegressFun | TRegressFun | |
| 2 | X | Double | scalar |
| 3 | Y | Double | scalar |
| 4 | Pars | Double[] | |
| 5 | Grad | TVec | source TVec |
| 6 | fp | TMtxFloatPrecision |
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