Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Fixes a bug where `error` was not correctly passed from `half_kelly`, `third_kelly`, and `quarter_kelly`.
* Added `invlognorm` as a new distribution.
* Added `bucket_percentages` to more easily get the percentage of values within a bucket.
* Added `third_kelly` as an alias for `kelly` with deference = 0.66. (TODO: Fix tests)
* Added `third_kelly` as an alias for `kelly` with deference = 0.66.
* Allows Bernoulli distributions to be defined with p=0 or p=1
* Added a `Makefile` to help simplify testing and linting workflows

Expand Down
4 changes: 2 additions & 2 deletions squigglepy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def growth_rate_to_doubling_time(growth_rate):
where 0.05 means +5% to a doubling time. The time unit remains the same, so if we've
got +5% annual growth, the returned value is the doubling time in years.

NOTE: This only works works for numbers, arrays and distributions where all numbers
NOTE: This only works for numbers, arrays and distributions where all numbers
are above 0. (Otherwise it makes no sense to talk about doubling times.)

Parameters
Expand Down Expand Up @@ -860,7 +860,7 @@ def doubling_time_to_growth_rate(doubling_time):
same, so if we've got a doubling time of 2 years, the returned value is the annual
growth rate.

NOTE: This only works works for numbers, arrays and distributions where all numbers
NOTE: This only works for numbers, arrays and distributions where all numbers
are above 0. (Otherwise it makes no sense to talk about doubling times.)

Parameters
Expand Down