Skip to content

Commit 917fcc4

Browse files
committed
improved the explanations
1 parent 54cd2fa commit 917fcc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stumpy/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,14 @@ def check_window_size(m, max_size=None, n=None):
614614
l = n - m + 1
615615
# The start index of subsequences are: 0, 1, ..., l-1
616616

617-
# If `l` is odd (hence, `l == 2c+1`):
617+
# If `l` is odd (`l` can be expressed as `l == 2c+1`):
618618
# The central subsequence is located at index `c == l // 2`,
619619
# with two farthest neighbors, one located at index `0`(to the left of `c`)
620620
# and the other located at index `l - 1 == 2c` (to the right of `c`).
621621
# Both indices `0` and `2c` are exactly `c == l // 2` index positions away
622622
# from the central subsequence located at index `c`.
623623

624-
# If `l` is even (hence, `l == 2c`):
624+
# If `l` is even (`l` can be expressed as `l == 2c`):
625625
# There are two central-most subsequences located at index locations
626626
# `c` and `c-1`. For subsequence at `c`, its farthest neighbor will be
627627
# located at index `0` (to the left of `c`) and, for `c-1`, its farthest

0 commit comments

Comments
 (0)