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

A dedicated library for statistical distributions #104

Merged
merged 26 commits into from
Oct 27, 2023

Conversation

astamm
Copy link
Contributor

@astamm astamm commented Oct 27, 2023

Layout of a statistical distribution library in Anima.
To be included in the library, a statistical distribution must inherit from BaseDistribution class and, as such, needs to have the following methods implemented:

  • BelongsToSupport(x): checks if a value x is in the support of the distribution;
  • GetDensity(x): computes the density at x;
  • GetLogDensity(x): computes the log-density at x;
  • Fit(sample): estimate the parameters of the distribution using the provided sample;
  • Random(sample): draws sample from the distribution.

Currently implemented distributions are: Gamma distribution for real positive scalars, Watson distribution for axially symmetric vectors on the 2-sphere and Dirichlet distribution on the simplex.

astamm and others added 26 commits April 5, 2023 22:58
@astamm astamm merged commit 815d8b8 into Inria-Empenn:master Oct 27, 2023
1 check passed
@astamm astamm deleted the dirichlet_distribution branch October 27, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants