Skip to content

[distribution][mojo][doc] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 + Update docstrings#5

Merged
forfudan merged 11 commits intomainfrom
distributions
Apr 14, 2026
Merged

[distribution][mojo][doc] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 + Update docstrings#5
forfudan merged 11 commits intomainfrom
distributions

Conversation

@shivasankarka
Copy link
Copy Markdown
Member

@shivasankarka shivasankarka commented Apr 3, 2026

This PR does the following:

  • Update the codebase of StaMojo to Mojo v.0.26.2
  • Add Beta, Gamma and Poisson distributions.
  • change std to stddev in descriptive.mojo to avoid conflicts with mojo default stdlib namespace.
  • Update docstrings to be compliant with the Mojo docstring convention.

@shivasankarka
Copy link
Copy Markdown
Member Author

@forfudan Please check and merge this first. Then I will rebase the other one.

@shivasankarka shivasankarka requested a review from forfudan April 4, 2026 02:31
@forfudan forfudan changed the title [Distributions][Mojo] Implement Beta, Gamma, Poisson distributions & Update to Mojo 26.2.0 [distributions][mojo] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 Apr 14, 2026
…d to use a binary search method to properly handle this.

Moreover, `isf` can be just calculated as ppf(1.0-q)
@forfudan forfudan changed the title [distributions][mojo] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 [distributions][mojo][doc] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 + Update docstrings Apr 14, 2026
@forfudan forfudan changed the title [distributions][mojo][doc] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 + Update docstrings [distribution][mojo][doc] Implement Beta, Gamma, Poisson distributions + Update codebase to Mojo v0.26.2 + Update docstrings Apr 14, 2026
Copy link
Copy Markdown
Member

@forfudan forfudan left a comment

Choose a reason for hiding this comment

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

Hi @shivasankarka, I updated the ppf function for Poisson and use bin search to avoid underflow problem when mu is big. Also updated the docstring so that they are compliant with the Mojo docstring convention.

@forfudan forfudan merged commit 512746d into main Apr 14, 2026
1 check passed
@forfudan forfudan deleted the distributions branch April 14, 2026 13:33
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