ionline_state_visualizer
Online algorithm state evolution visualizer interface.
This module defines the abstract source class for visualizers that render the evolution of online algorithm state over time.
- class pysatl_cpd.analysis.visualization.online.states.ionline_state_visualizer.IOnlineStateVisualizer(backend)[source]
Bases:
IVisualizer,ABC,GenericAbstract source class for online algorithm state evolution visualizers.
Visualizers of this type render the evolution of algorithm state over time, showing how internal statistics change with each observation.
Notes
The generic OnlineAlgorithmStateT type is bound by OnlineAlgorithmState. This allows visualizers to work with specific state implementations such as ShewhartControlChartState and ensures that any concrete implementation works with valid algorithm state objects.
- Parameters:
backend (DrawBackend | str)
- abstractmethod set_states(states)[source]
Set the sequence of algorithm states to visualize.
- Parameters:
states (
Sequence[Optional[TypeVar(OnlineAlgorithmStateT, bound=OnlineAlgorithmState)]]) – Sequence of algorithm state snapshots for each observation step. None values indicate steps where state was not captured.- Returns:
Returns self to allow method chaining.
- Return type:
Self- Raises:
NotImplementedError – Subclasses must implement this method.