Summary
DDM is RTTA's streaming implementation of: Drift Detection Method for Bernoulli prediction-error streams.
Update API
result = rtta.DDM().update(error)
The update(...) call consumes one observation using error. advance(...)
uses the same inputs when the caller wants to update state without materializing
a Python return value.
Theory Of Operation
DDM is a streaming classifier-error drift detector. It treats positive input values as errors and compares the current error process against the best historical baseline using the detector's bound: binomial standard error for DDM, distance-between-errors degradation for EDDM, and a Hoeffding bound for HDDM.
Recurrence
Let \(z_t = error_t\) denote the observation consumed by one
update(...) call and let \(\theta\) denote constructor parameters such as
window lengths, thresholds, and smoothing constants.
The detector resets its error counts after a drift signal.
The return value is the current scalar indicator value.
Implementation Notes
The recurrence is implemented in src/rtta/indicator.cpp in class DDM.
