Skip to content

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).

WeightPoint[]

number

number