Skip to content
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

Get distribution parameters from mean and std #116

Conversation

FriesischScott
Copy link
Owner

@FriesischScott FriesischScott commented Jun 1, 2023

This PR provides convenience methods to get the parameters of a Distribution from its mean an standard deviation (if possible!).

Basic list of Distributions:

  • Beta
  • Gamma
  • Gumbel
  • Logistic
  • LogNormal
  • Rayleigh
  • Uniform

These are the ones we had in Cossan. I need to check which of the remaining UnivariateDistributions in Distributions.jl can be built from mean and standard deviation.

Closes #105.

@FriesischScott FriesischScott added the feature New feature or feature request label Jun 1, 2023
@FriesischScott FriesischScott self-assigned this Jun 1, 2023
@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b921a03) 98.76% compared to head (fabe738) 98.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
+ Coverage   98.76%   98.79%   +0.03%     
==========================================
  Files          25       26       +1     
  Lines         970      998      +28     
==========================================
+ Hits          958      986      +28     
  Misses         12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FriesischScott FriesischScott force-pushed the 105-convenience-methods-for-distributions-from-mean-and-standard-deviation branch from 4da740f to c5c9c9d Compare December 21, 2023 11:13
@FriesischScott FriesischScott marked this pull request as ready for review December 21, 2023 12:13
@FriesischScott FriesischScott merged commit 70d1e21 into master Dec 21, 2023
9 checks passed
@FriesischScott FriesischScott deleted the 105-convenience-methods-for-distributions-from-mean-and-standard-deviation branch December 21, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convenience methods for distributions from mean and standard deviation
1 participant