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

Added triangular and non uniform distribution #304

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

brendan-bath
Copy link

I've added the triangular and non uniform distribution.
For each distribution I mapped a standard uniform distribution value to the given distribution by putting the value through the percent point function.
in the case of the non uniform linearly decreasing value I assumed the value would intercept the lower bound at 2/(upperBound - LowerBound). From there a gradient is worked out such that the percent point function at the upper bound would be equal to 1.

@gpampara
Copy link
Member

Thanks for the PR! I'm curious about the formulation and just want to check a few things before we merge this.

@brendan-bath
Copy link
Author

Feel free to ask my any questions if you have any concerns/confusion.

Copy link
Member

@gpampara gpampara left a comment

Choose a reason for hiding this comment

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

Whilst nothing is wrong with the implementation, it is a bit too specialised.

We really need to be catering for the general case, in which the triangular distribution would need 3 input parameters: a <= c <= b.

Additionally, a reference or two would be a good addition for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants