drifter: Drifter

View source: R/ac_drifter.R

drifterR Documentation

Drifter

Description

Ancestor class for drift detection.

Every detector in the package follows the same contract:

  • update_state(obj, value) returns a list with the updated object (obj) and a logical flag (drift) telling whether a drift was detected ** in that call**;

  • obj$drifted is sticky: it stays TRUE after the first detection until reset_state() is called;

  • reset_state(obj) returns the detector to its initial state;

  • obj$drifter_output holds the per-observation diagnostics produced by the last call to fit(), one row per observation; rows are NA when the detector reported nothing for that observation (for example while its window is filling, or for a skipped missing value).

Usage

drifter()

Value

Drifter object

Examples

model <- drifter()
model$drifted

heimdall documentation built on Dec. 2, 2026, 5:08 p.m.