ArrayInterpolator class
Expands an array to a larger size by inserting extra points whose values are computed from their neighbours by linear interpolation of the array data.
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
interpolateArray(
Float64List data, int newSize) → Float64List -
Makes an array
data
larger by linear interpolation.newSize
is the desired size after interpolation. Returns a new array ofnewSize
. Works evens ifnewSize
is smaller thandata
size, but this is not a true compression preserving minima an maxima. See CompressedArray1D instead. -
linearInterpolate(
double before, double after, double atPoint) → double -
Interpolates two values
before
,after
linearly at the positionatPoint
which must be in0, 1
and returns the result.