Options
All
  • Public
  • Public/Protected
  • All
Menu

Cost function for least-square problems

Implements a cost function using the interface provided by the LeastSquareProblem class.

Hierarchy

Index

Constructors

constructor

Properties

_isDisposed

_isDisposed: boolean = false

Protected _lsp

Accessors

isDisposed

  • get isDisposed(): boolean

Methods

dispose

  • dispose(): void
  • Returns void

finiteDifferenceEpsilon

  • finiteDifferenceEpsilon(): Real

gradient

  • gradient(grad_f: Real[], x: Real[]): void
  • compute vector of derivatives of the least square function

    Parameters

    Returns void

jacobian

  • method to overload to compute J_f, the jacobian of the cost function with respect to x

    Parameters

    Returns void

value

  • compute value of the least square function

    Parameters

    Returns Real

valueAndGradient

values

valuesAndJacobian

  • method to overload to compute J_f, the jacobian of the cost function with respect to x and also the cost function

    Parameters

    Returns Real[]