Skip to content

899 new add gamma distribution and other parameters to state age function 1#1004

Merged
annawendler merged 39 commits intomainfrom
899-new-add-gamma-distribution-and-other-parameters-to-state_age_function-1
May 13, 2024
Merged

899 new add gamma distribution and other parameters to state age function 1#1004
annawendler merged 39 commits intomainfrom
899-new-add-gamma-distribution-and-other-parameters-to-state_age_function-1

Conversation

@lenaploetzke
Copy link
Member

@lenaploetzke lenaploetzke commented Apr 11, 2024

Changes and Information

Please briefly list the changes (main added features, changed items, or corrected bugs) made:

  • added the parameters location and scale to StateAgeFunction
  • added three state age functions
  • added tests

If need be, add additional information and what the reviewer should look out for in particular:

Merge Request - Guideline Checklist

Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.

Checks by code author

  • Every addressed issue is linked (use the "Closes #ISSUE" keyword below)
  • New code adheres to coding guidelines
  • No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
  • Tests are added for new functionality and a local test run was successful (with and without OpenMP)
  • Appropriate documentation for new functionality has been added (Doxygen in the code and Markdown files if necessary)
  • Proper attention to licenses, especially no new third-party software with conflicting license has been added
  • (For ABM development) Checked benchmark results and ran and posted a local test above from before and after development to ensure performance is monitored.

Checks by code reviewer(s)

  • Corresponding issue(s) is/are linked and addressed
  • Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.)
  • Appropriate unit tests have been added, CI passes, code coverage and performance is acceptable (did not decrease)
  • No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
  • On merge, add 2-5 lines with the changes (main added features, changed items, or corrected bugs) to the merge-commit-message. This can be taken from the briefly-list-the-changes above (best case) or the separate commit messages (worst case).

Closes #929.

@lenaploetzke lenaploetzke added the status::in review This issues is in review. label Apr 12, 2024
@lenaploetzke lenaploetzke requested review from annawendler and removed request for mknaranja April 23, 2024 12:21
@annawendler
Copy link
Member

Can you merge the main branch so that the get_mean method is already included here?

@lenaploetzke lenaploetzke removed the request for review from annawendler April 29, 2024 13:55
@lenaploetzke lenaploetzke added status::on hold This issue is on hold. status::in progress This issue is in progess. and removed status::in review This issues is in review. status::on hold This issue is on hold. labels Apr 29, 2024
@lenaploetzke lenaploetzke added status::in review This issues is in review. and removed status::in progress This issue is in progess. labels Apr 30, 2024
Copy link
Member

@annawendler annawendler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

I was wondering if we should rename ExponentialDecay to ExponentialSurvivalFunction. This would be consistent with the other new SAFs and describe better what it is used for. I'm not sure if SmootherCosineSurvivalFunction is a good name as I don't know if there is a name for the associated distribution, but I guess we should at least mention that this is a survival function as well in the documentation.

Co-authored-by: annawendler <106674756+annawendler@users.noreply.github.com>
@lenaploetzke
Copy link
Member Author

Nice work!

I was wondering if we should rename ExponentialDecay to ExponentialSurvivalFunction. This would be consistent with the other new SAFs and describe better what it is used for. I'm not sure if SmootherCosineSurvivalFunction is a good name as I don't know if there is a name for the associated distribution, but I guess we should at least mention that this is a survival function as well in the documentation.

I like this idea and renamed ExponentialDecay. I also agree, that the name SmootherCosineSurvivalFunction is not appropriate, but put in the docu.

@lenaploetzke lenaploetzke requested a review from annawendler May 13, 2024 08:43
lenaploetzke and others added 2 commits May 13, 2024 14:45
Co-authored-by: annawendler <106674756+annawendler@users.noreply.github.com>
@lenaploetzke lenaploetzke requested a review from annawendler May 13, 2024 14:05
@annawendler annawendler merged commit e15b4bb into main May 13, 2024
@annawendler annawendler deleted the 899-new-add-gamma-distribution-and-other-parameters-to-state_age_function-1 branch May 13, 2024 15:16
reneSchm pushed a commit that referenced this pull request May 24, 2024
…tion (#1004)

- Added the parameters location and scale to StateAgeFunction
- Added three state age functions: GammaSurvivalFunction, LognormSurvivalFunction and ErlangDensity
- Renamed ExponentialDecay to ExponentialSurvivalFunction and the member m_parameter to m_distribution_parameter
- Added tests

Co-authored-by: annawendler <106674756+annawendler@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status::in review This issues is in review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add gamma distribution and other parameters to state_age_function

2 participants