[ 
https://issues.apache.org/jira/browse/NUMBERS-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462879#comment-17462879
 ] 

Gilles Sadowski commented on NUMBERS-180:
-----------------------------------------

{quote}
{code}
// New class
GammaRatio.value(a, b)
GammaRatio.delta(a, delta)
{code}
{quote}

+1

> Gamma ratio and delta ratio
> ---------------------------
>
>                 Key: NUMBERS-180
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-180
>             Project: Commons Numbers
>          Issue Type: New Feature
>          Components: gamma
>    Affects Versions: 1.1
>            Reporter: Alex Herbert
>            Priority: Minor
>             Fix For: 1.1
>
>
> The recently ported gamma functions from the Boost C++ library contain a 
> method for computing a ratio of gamma functions:
> {noformat}
> gamma_ratio(a, b) = gamma(a) / gamma(b)
> gamma_delta_ratio(a, delta) = gamma(a) / gamma(a + delta){noformat}
> This method is required for part of the Boost C++ implementation of the 
> RegularizedBeta function.
> It has an application in Commons Statistics for computing the mean and 
> variance of the [Nakagami 
> distribution|https://en.wikipedia.org/wiki/Nakagami_distribution].
> Potential API:
> {code:java}
> // Added to the existing Gamma class
> Gamma.ratio(a, b)
> Gamma.delta_ratio(a, delta)
> // New class
> GammaRatio.value(a, b)
> GammaRatio.delta(a, delta){code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to