Class InterpolatorConstant

Piecewise-constant interpolation, with open right interval

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 InterpolatorConstant

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 = 0

    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

Generated using TypeDoc