LinearInterpolation class
Linear interpolation is a curve fitting method that uses linear polynomials to construct new data points within the range of a discrete set of known data points.
This can also be seen as a special case of polynomial interpolation where the degree is set to 1.
- Inheritance
-
- Object
- Interpolation
- LinearInterpolation
Constructors
-
LinearInterpolation({required List<
InterpolationNode> nodes}) - Creates a LinearInterpolation instance from the given interpolation nodes.
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
-
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