-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converted Param.h icdf arrays from double array to InverseCdf class #316
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloneDeath
suggested changes
May 21, 2020
Looks good. I think it's a step in the right direction, for sure. |
DavidVernest
changed the title
Converted Param MildToRecovery_icdf from double array to ICDF class
Converted Param.h icdf arrays from double array to InverseCdf wrapper class
May 22, 2020
DavidVernest
requested review from
dlaydon,
gnedjati,
igfoo,
matt-gretton-dann,
NeilFerguson and
Z80coder
as code owners
May 22, 2020 09:58
DavidVernest
changed the title
Converted Param.h icdf arrays from double array to InverseCdf wrapper class
Converted Param.h icdf arrays from double array to InverseCdf class
May 27, 2020
CloneDeath
approved these changes
May 27, 2020
7 tasks
rename InverseCdf to guidelines convert remaining ICDF variables
rm SetICDF() add apply_exponent(int) add get_value(int)
…ouble This is to avoid data loss during an unnecessary type conversion.
Move ChooseFromICDF() from Update.cpp to InverseCdf.cpp and rename to choose()
The start value for ICDF arrays was hardcoded to 100. This was extracted to a const, but incorrectly given the data type of int. To avoid any implicit type conversions, this has now been specified as a double value of 100.0.
CloneDeath
approved these changes
Jun 8, 2020
@matt-gretton-dann @dlaydon @weshinsley PR #316 is now 29 days old. It finishes the cleanup of ICDF, incorporates Neil Ferguson's data-type fix (from int to double), and passes all tests. Would appreciate a review/merge so I can concentrate on the Update.cpp work. Thanks. |
weshinsley
reviewed
Jun 19, 2020
weshinsley
reviewed
Jun 19, 2020
weshinsley
approved these changes
Jun 19, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #315. (Refactor the ICDF arrays in Param.h / CovidSim.cpp)