streamsim.src.detectors.passthrough module

Change point detector that treats any non-None feature value as a change point. (passthrough)

Detection Method:

When a valid feature (like a detected peak) is passed in, it flags it as a change point by returning True and setting drift_detected to True. This lets downstream components respond to detected events without extra interpretation logic.

Important Dependencies:
  • streamsim.src.core.interfaces.StreamingChangePointDetector: Base interface

Author: F.Feenstra

class streamsim.src.detectors.passthrough.PeakPassThrough[source]

Bases: StreamingChangePointDetector

Simple pass-through detector for peak detection. Returns True (and sets drift_detected=True) whenever a valid feature (for instance a peak) is provided.

property drift_detected: bool

Check if drift/change was detected.

Returns the current status of the detector. This property reflects the outcome of the most recent update() call or the cumulative state depending on the implementation strategy.

Returns:

True if a change point is currently flagged, False otherwise.

Return type:

bool

reset() None[source]
update(feature_value: float | None) bool[source]

Returns True if feature_value is not None. Crucially, this also updates the drift_detected property.