Polyfitter class

Inheritance

Constructors

Polyfitter({required int deg, int? nmax})
factory

Properties

coeffMode → CoeffMode?
no setter
coeffs → Float64List?
no setter
deg → int
final
hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
Whether close() has been called.
no setterinherited
nmax → int
no setter
res → _PolyfitResource
Throws if closed; returns the native resource otherwise.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Deterministic cleanup.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polyfit(Float64List x, Float64List y, {CoeffMode mode = CoeffMode.scaled}) → Float64List
Fits polynomial coefficients to x and y, stores them in this instance, and returns the fitted coefficient vector.
polyval(Float64List x) → Float64List
Evaluates the coefficients stored by the most recent polyfit call.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

evaluate(Float64List x, Float64List coeffs) → Float64List
Evaluates a polynomial in the original x-domain using Horner's method.