Class InterpolatorBaseAbstract

Base class for interpolators

Hierarchy

Constructors

Properties

Methods

Constructors

  • Parameters

    • x: number[]

      The x (often time) variables that form the domain of interpolation

    • y: number[] | number[][]

      An array of variables to interpolate, or an array of arrays, each of the same length as x

    Returns InterpolatorBase

Properties

_i: number
_x: readonly number[]
_y: readonly number[][]
nX: number

Number of 'x' points in the system

nY: number

Number of series per 'x'

Methods

  • eval(x: number, series: number): number
  • Evaluate the interpolation function

    Parameters

    • x: number

      The x position to interpolate the function at

    • series: number

    Returns number

  • evalAll(x: number): number[]
  • Evaluate the interpolation function on all traces

    Parameters

    • x: number

      The x position to interpolate the function at

    Returns number[]

  • search(target: number, allowRight: boolean): number
  • Parameters

    • target: number
    • allowRight: boolean

    Returns number

Generated using TypeDoc