Fits a line through recent readings, so a slow drift is visible before it matters.
Creates an empty trend estimator.
Adds a reading.
The fitted slope in units per reading, or null without enough readings.
null
A positive slope is a rising signal.
Fits a line through recent readings, so a slow drift is visible before it matters.