Skip to content

KochanekSpline1D

Introduction

vtkKochanekSpline1D provides methods for creating a Kochanek interpolating spline object from given parameters, and allows for the calculation of the spline value and derivative at any given point inside the spline intervals.

Methods

computeCloseCoefficients

ArgumentTypeRequiredDescription
sizeNumberYes
workFloat32ArrayYes
xArray[Number]Yes
yArray[Number]Yes

computeOpenCoefficients

ArgumentTypeRequiredDescription
sizeNumberYes
workFloat32ArrayYes
xArray[Number]Yes
yArray[Number]Yes
optionsObjectYes
options.leftConstraintBoundaryConditionYes
options.leftValueNumberYes
options.rightConstraintBoundaryConditionYes
options.rightValueNumberYes

extend

Method used to decorate a given object (publicAPI+model) with vtkKochanekSpline1D characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIKochanekSpline1DInitialValuesNo(default: {})

getValue

ArgumentTypeRequiredDescription
intervalIndexNumberYes
tNumberYes

newInstance

Method used to create a new instance of vtkKochanekSpline1D.

ArgumentTypeRequiredDescription
initialValuesIKochanekSpline1DInitialValuesNofor pre-setting some of its content