StepRegressor class final

A covariate that changes at known instants and holds its value in between: a dose, an altitude, a training load.

Inheritance

Constructors

StepRegressor(String name, List<double> knots, List<double> values, {double before = 0})
A column named name that takes values[i] from knots[i] until the next knot, and before (default zero) before the first.

Properties

before → double
The value before the first knot.
final
hashCode → int
The hash code for this object.
no setteroverride
knots → Float64List
Instants at which the column takes a new value, as a read-only view.
no setter
name → String
What this column represents, used when reporting its coefficient.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Float64List
The value taken from each knot until the next, as a read-only view.
no setter

Methods

at(double time) → double
The value of the column at time.
override
isSilentOver(double from, double to) → bool
Whether the column is identically zero over [from, to), in which case its coefficient is not determined by anything.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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