PolynomialInterpolation class
Polynomial interpolation is the interpolation of a given data set by the polynomial of lowest possible degree that passes through the points of the dataset.
This can also be seen as a generalization of linear interpolation.
- Inheritance
-
- Object
- Interpolation
- PolynomialInterpolation
Constructors
-
PolynomialInterpolation({required List<
InterpolationNode> nodes}) -
Creates a PolynomialInterpolation instance from the given interpolation
nodes.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodes
→ List<
InterpolationNode> -
The interpolation nodes.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildPolynomial(
) → Algebraic -
Creates the interpolation polynomial of degree
maxDegree
. -
compute(
double x) → double -
Returns the
y
value of they = f(x)
equation where the functionf
is built by interpolating the given nodes nodes andx
is the given point at which the function has to be evaluated.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