Options
All
  • Public
  • Public/Protected
  • All
Menu

Parameterized cost function

This class creates a proxy cost function which can depend on any arbitrary subset of parameters (the other being fixed)

Hierarchy

Implements

Index

Properties

_actualParameters

_actualParameters: Real[]

Private _costFunction

_costFunction: CostFunction

_fixParameters

_fixParameters: boolean[]

_fixedParameters

_fixedParameters: Real[]

_isDisposed

_isDisposed: boolean = false

_numberOfFreeParameters

_numberOfFreeParameters: Size

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

finiteDifferenceEpsilon

finiteDifferenceEpsilon: () => Real

Type declaration

gradient

gradient: (grad_f: Real[], x: Real[]) => void

Type declaration

    • Parameters

      Returns void

include

include: (projectedParameters: Real[]) => Real[]

Type declaration

    • Parameters

      • projectedParameters: Real[]

      Returns Real[]

isDisposed

isDisposed: false

jacobian

jacobian: (jac: Matrix, x: Real[]) => void

Type declaration

mapFreeParameters

mapFreeParameters: (parameterValues: Real[]) => void

Type declaration

    • (parameterValues: Real[]): void
    • Parameters

      • parameterValues: Real[]

      Returns void

pInit

pInit: (parameterValues: Real[], fixParameters?: boolean[]) => Projection

Type declaration

    • Parameters

      • parameterValues: Real[]
      • Optional fixParameters: boolean[]

      Returns Projection

project

project: (parameters: Real[]) => Real[]

Type declaration

valueAndGradient

valueAndGradient: (grad_f: Real[], x: Real[]) => Real

Type declaration

valuesAndJacobian

valuesAndJacobian: (jac: Matrix, x: Real[]) => Real[]

Type declaration

Methods

pcfInit1

pcfInit2

value

values

  • values(freeParameters: Real[]): Real[]