Skip to content

Commit 252d52b

Browse files
committed
improve comments
1 parent 3c87e0d commit 252d52b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

stumpy/core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,12 @@ def check_window_size(m, max_size=None, n=None):
611611
# For any `i` and its corresponding `jmax`, we have:
612612
# |i - jmax| >= d > excl_zone
613613

614-
# The minimum |i - jmax| is achieved when `S_i` is the middle subsequence,
615-
# i.e. i == int(ceil((n - m) / 2)), and its corresponding jmax is 0. Hence,
616-
# we just need to make sure the following inequity is satisfied:
614+
# Hence, as long as the `S_i` that corresponds to `d` has one non-trivial
615+
# neighbour, any other subsequence has one non-trivial neighbour as well.
616+
617+
# The minimum |i - jmax| is achieved when `S_i` is the middle ubsequence,
618+
# i.e. i == int(ceil((n - m) / 2)). Its corresponding `jmax` is 0. Hence,
619+
# we just need to make sure the following inequality is satisfied:
617620
# |int(ceil((n - m) / 2)) - 0| > excl_zone`
618621

619622
excl_zone = int(math.ceil(m / config.STUMPY_EXCL_ZONE_DENOM))

0 commit comments

Comments
 (0)