itrace_visualizer

Trace visualizer interface.

This module defines the abstract source class for visualizers that render detection traces, including detection function values and algorithm metadata.

class pysatl_cpd.analysis.visualization.abstracts.itrace_visualizer.ITraceVisualizer(backend)[source]

Bases: IVisualizer, ABC, Generic

Abstract source class for trace visualizers.

Visualizers of this type render detection results, including detection function values and algorithm metadata.

Notes

The generic DetectionTraceT type is bound by DetectionTrace. This allows visualizers to work with specific trace implementations such as OnlineDetectionTrace or OfflineDetectionTrace and ensures that any concrete implementation works with valid detection traces.

Parameters:

backend (DrawBackend | str)

abstractmethod set_trace(trace)[source]

Set the detection trace to visualize.

Parameters:

trace (TypeVar(DetectionTraceT, bound= DetectionTrace)) – Detection results containing change-point indices, scores, and algorithm-specific metadata.

Returns:

Returns self to allow method chaining.

Return type:

Self

Raises:

NotImplementedError – Subclasses must implement this method.