[
https://issues.apache.org/jira/browse/NUMBERS-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Herbert updated NUMBERS-170:
---------------------------------
Component/s: gamma
> RegularizedBeta function to detect edge cases
> ---------------------------------------------
>
> Key: NUMBERS-170
> URL: https://issues.apache.org/jira/browse/NUMBERS-170
> Project: Commons Numbers
> Issue Type: Bug
> Components: gamma
> Affects Versions: 1.0
> Reporter: Alex Herbert
> Priority: Minor
> Fix For: 1.1
>
>
> The [Regularized incomplete beta
> function|https://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function]
> Has the following properties:
> {noformat}
> I(0; a, b) = 0
> I(1; a, b) = 1
> I(x; a, 1) = x^a
> I(x, 1, b) = 1 - (1-x)^b
> {noformat}
> Currently this test fails:
> {code:java}
> Assertions.assertEquals(1.0, RegularizedBeta.value(1.0, 1e17, 0.5));
> {code}
> The function presently ignores the x=0 and x=1 case which evaluate with
> infinities due to the use of log( x ) and log(1-x).
> The function should be corrected to handle edge cases.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)