Skip to content

Conversation

@shimwell
Copy link
Member

Description

This PR adds a integral to the Uniform distribution, I noticed we have integrals on the other functions

Having a Uniform would help me avoid sampling for uniform distributions for another PR

Fixes # (issue)

Checklist

  • I have performed a self-review of my own code
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)

@GuySten
Copy link
Contributor

GuySten commented Nov 21, 2025

The integral over the range of a Uniform distribution is 1.0 and does not depend on a or b.

Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

As @GuySten said, the integral should be 1.0 and there is already a default integral method on Distribution that returns 1.0

@paulromano paulromano closed this Nov 21, 2025
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.

4 participants