SplineInterpolation class base

Performs spline interpolation given a set of control points. The algorithm can compute a "monotone cubic spline" or a "linear spline" based on the properties of the control points.

Inheritance

Constructors

SplineInterpolation({required List<InterpolationNode> nodes})
Creates a SplineInterpolation instance from the given interpolation nodes.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
nodes List<InterpolationNode>
The interpolation nodes.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compute(double x) double
Returns the y value of the y = f(x) equation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited