DriftCapture · interface
LeastSquares
A least-squares problem: how many residuals, how many parameters, and both at a point.
Explained in DriftCapture.
interface LeastSquaresimport type { LeastSquares } from '@driftengine/capture';Properties
| Name | Type | Description |
|---|---|---|
residualsreadonly | number | |
parametersreadonly | number |
Methods
evaluate
evaluate(x: Float64Array, residuals: Float64Array, jacobian: Float64Array | null): voidThe residuals at x, and — unless jacobian is null — their derivatives, row by residual.
| Parameter | Type | Description |
|---|---|---|
x | Float64Array | |
residuals | Float64Array | |
jacobian | Float64Array | null |