Options
All
  • Public
  • Public/Protected
  • All
Menu

Kernel interpolation between discrete points

Implementation of the kernel interpolation approach, which can be found in "Foreign Exchange Risk" by Hakala, Wystup page 256.

The kernel in the implementation is kept general, although a Gaussian is considered in the cited text.

Hierarchy

Implements

Index

Constructors

constructor

Properties

_extrapolate

_extrapolate: boolean = false

Protected _impl

_impl: Impl = null

Methods

allowsExtrapolation

  • allowsExtrapolation(): boolean
  • tells whether extrapolation is enabled

    Returns boolean

Protected checkRange

  • checkRange(x: Real, extrapolate: boolean): void

derivative

  • derivative(x: Real, allowExtrapolation?: boolean): Real
  • Parameters

    • x: Real
    • Default value allowExtrapolation: boolean = false

    Returns Real

disableExtrapolation

  • disableExtrapolation(b?: boolean): void
  • disable extrapolation in subsequent calls

    Parameters

    • Default value b: boolean = true

    Returns void

empty

  • empty(): boolean
  • Returns boolean

enableExtrapolation

  • enableExtrapolation(b?: boolean): void
  • enable extrapolation in subsequent calls

    Parameters

    • Default value b: boolean = true

    Returns void

f

  • f(x: Real, allowExtrapolation?: boolean): Real
  • Parameters

    • x: Real
    • Default value allowExtrapolation: boolean = false

    Returns Real

getExistingHelpers

  • getExistingHelpers(): any

isInRange

  • isInRange(x: Real): boolean

primitive

  • primitive(x: Real, allowExtrapolation?: boolean): Real
  • Parameters

    • x: Real
    • Default value allowExtrapolation: boolean = false

    Returns Real

secondDerivative

  • secondDerivative(x: Real, allowExtrapolation?: boolean): Real

update

  • update(): void

xMax

xMin