NewtonInterpolation class base
Newton interpolation is an interpolation polynomial for a given set of data points. It can be expressed using forward or backward divided differences.
- Inheritance
-
- Object
- Interpolation
- NewtonInterpolation
Constructors
-
NewtonInterpolation({required List<
InterpolationNode> nodes, bool forwardDifference = true}) -
Creates a NewtonInterpolation instance from the given interpolation
nodes.
const
Properties
- forwardDifference → bool
-
When
true
, the Newton interpolation with forward differences is used. Whenfalse
, the Newton interpolation with backward differences is used.final - 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
-
backwardDifferenceTable(
) → RealMatrix - Computes the backward differences table and stores the results in a RealMatrix object.
-
compute(
double x) → double -
Returns the
y
value of they = f(x)
equation.override -
forwardDifferenceTable(
) → RealMatrix - Computes the forward differences table and stores the results in a RealMatrix object.
-
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