boostorg / boostorg/math

New special functions: logarithm of incomplete gamma and beta functions

Aperta
#1,173 21 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
374
Fork
264
Merge medio
1g 23h
PR unite (30g)
17

Descrizione

The incomplete gamma and beta functions arise in a LOT of cumulative density functions. Very accurate implementations of them are quite common and also in Boost. What I have not seen yet are implementations of their logarithms. These would be very helpful to compute accurate logarithms of CDF and SFs. One example is an issue in SciPy where a user wants to compute the logcdf of the Poisson distribution for not even very extreme values: https://github.com/scipy/scipy/issues/8424. Here the logarithm of the incomplete regularized gamma function would come very much in handy.

SciPy includes the logarithm of the normal distribution CDF [already](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.log_ndtr.html) but incomplete beta and gamma functions are of course a larger beast to kill.

Is this something you would find worthwile for Boost?

Edit: CC ing the special function wizards @steppi @WarrenWeckesser

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.