ciren / cilib

Typesafe, purely functional Computational Intelligence
https://cilib.net
Apache License 2.0
124 stars 101 forks source link

Added triangular and non uniform distribution #304

Open brendan-bath opened 5 years ago

brendan-bath commented 5 years ago

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 commented 5 years ago

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

brendan-bath commented 5 years ago

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