DriftCapture · interface

LeastSquares

A least-squares problem: how many residuals, how many parameters, and both at a point.

Explained in DriftCapture.

interface LeastSquares
import type { LeastSquares } from '@driftengine/capture';

Properties

NameTypeDescription
residualsreadonlynumber
parametersreadonlynumber

Methods

evaluate

evaluate(x: Float64Array, residuals: Float64Array, jacobian: Float64Array | null): void

The residuals at x, and — unless jacobian is null — their derivatives, row by residual.

ParameterTypeDescription
xFloat64Array
residualsFloat64Array
jacobianFloat64Array | null