procedure NumericDerive(RegressFun: TRegressFun; const X: Double; const Y: Double; const Pars: TVec; const Grad: TVec);
Numerical derivative for regress function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | RegressFun | TRegressFun | |
| 2 | X | Double | |
| 3 | Y | Double | |
| 4 | Pars | TVec | |
| 5 | Grad | TVec |
Result: stored in self (calling object)
Remarks:
Routine calculates the derivatives of the regression function RegressFun at (X,Y) by numerical differentiation. The results of differentation are returned in Grad vector. The Length and Complex properties of Grad vector are NOT adjusted automatically.
See Also: Regress.NLinRegress