@@ -70,17 +70,18 @@ class OnlineDetectionStepResult[StateT: OnlineAlgorithmState]:
7070 ----------
7171 step_num : int, default=0
7272 Zero-based index of the processed observation.
73- is_change_point : bool, default=False
74- Whether a changepoint was detected at this step.
75- is_force_change_point : bool, default=False
73+ is_forced_change_point : bool, default=False
7674 Whether a changepoint was forced due to maximum runlength constraint.
75+ is_signal_change_point : bool, default=False
76+ Whether a changepoint was detected by the algorithm's detection
77+ function exceeding the threshold.
7778 is_in_skip_period : bool, default=False
7879 Whether this step occurred during a post-detection skip period.
7980 detection_function : Number, default=nan
8081 The value of the detection statistic computed for this observation.
8182 processing_time : Number, default=nan
8283 Wall-clock time in seconds spent processing this step.
83- algorithm_state : StateT | None, default=None
84+ algorithm_state : StateT or None, default=None
8485 Snapshot of algorithm internal state after processing this step.
8586 """
8687
@@ -94,6 +95,18 @@ class OnlineDetectionStepResult[StateT: OnlineAlgorithmState]:
9495
9596 @property
9697 def is_change_point (self ) -> bool :
98+ """
99+ Whether a changepoint was detected at this step.
100+
101+ A changepoint is considered detected if it was either forced
102+ (due to maximum runlength) or signaled (detection function
103+ exceeded threshold).
104+
105+ Returns
106+ -------
107+ bool
108+ True if a forced or signal changepoint occurred, False otherwise.
109+ """
97110 return self .is_forced_change_point or self .is_signal_change_point
98111
99112
@@ -126,11 +139,11 @@ class OnlineDetectionTrace[StateT: OnlineAlgorithmState](DetectionTrace):
126139 Indices of beginning and ending of segments where algorithm was
127140 learning data distribution before change point. Default is empty list.
128141 forced_change_points : list[int], optional
129- Indices where changepoints were forced due to maximum runlength.
130- Default is empty list.
131- forced_change_points : list[int], optional
132- Indices where changepoints were forced due algorithm detection function
133- overcoming threshold. Default is empty list.
142+ Indices where changepoints were forced due to maximum runlength
143+ constraint. Default is empty list.
144+ signal_change_points : list[int], optional
145+ Indices where changepoints were detected due to the algorithm's
146+ detection function exceeding the threshold. Default is empty list.
134147 """
135148
136149 threshold : Number | None = None
0 commit comments