Skip to content

Commit

Permalink
Improved comment about similarity
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Dec 29, 2024
1 parent 73467a4 commit 093040f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartchg/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def compute_stuff(data: list[dict], today: date, lookbehind: int,
# - entry['upper']: upper "pseudo-bollinger" for the rate value
# - entry['lower']: lower "pseudo-bollinger" for the rate value
# - entry['center']: center between the two "pseudo-bollinger" values
# - entry['simil']: how much entry['offset'] and offset_mean are
# similar. For example:
# - entry['simil']: similarity between entry['offset'] and offset_mean.
# For example:
# - if entry['offset'] == offset_mean then --> simil = 0
# - if entry['offset'] == offset_upper then --> simil = 1
# - if entry['offset'] == offset_lower then --> simil = -1
Expand Down

0 comments on commit 093040f

Please sign in to comment.