Summary
ADWIN is RTTA's streaming implementation of: Adaptive-window mean drift detector with bounded history and directed shift output.
Update API
result = rtta.ADWIN().update(value)
The update(...) call consumes one observation using value. advance(...)
uses the same inputs when the caller wants to update state without materializing
a Python return value.
Theory Of Operation
ADWIN maintains an adaptive recent window and searches every admissible split for a statistically meaningful difference between the old and new subwindow means. The signal direction is the sign of the best accepted mean shift; accepting a split discards the older prefix.
Recurrence
Let \(z_t = value_t\) denote the observation consumed by one
update(...) call and let \(\theta\) denote constructor parameters such as
window lengths, thresholds, and smoothing constants.
When a cut is accepted, the older prefix is discarded and the retained suffix becomes the next adaptive window.
The return value is the current scalar indicator value.
Implementation Notes
The recurrence is implemented in src/rtta/indicator.cpp in class ADWIN.
