Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ def filter_change_points_by_median_threshold(
value of threshold is 0.05.
"""
valid_change_points = []
epsilon = 1e-10 # needed to avoid division by zero.

for idx in change_points:
if idx == 0 or idx == len(data):
Expand All @@ -331,11 +330,6 @@ def filter_change_points_by_median_threshold(
(left_mad + right_mad)):
valid_change_points.append(idx)
continue

relative_change = abs(right_value - left_value) / (left_value + epsilon)

if relative_change > threshold:
valid_change_points.append(idx)
return valid_change_points


Expand Down
Loading