endpointSlopeKgPerDay
endpointSlopeKgPerDay(
points,windowDays):number
Defined in: packages/core/src/math/adaptive.ts:32
Slope (kg/day) from the difference between the mean of the first windowDays
and the mean of the last windowDays of observations (smooths water noise).
Throws when the two windows overlap (date span < 2 * windowDays).
Parameters
Section titled “Parameters”points
Section titled “points”windowDays
Section titled “windowDays”number
Returns
Section titled “Returns”number