MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / lnLowIncGamma1

Method lnLowIncGamma1

JSAT/src/jsat/math/SpecialMath.java:884–891  ·  view source on GitHub ↗
(double a, double x)

Source from the content-addressed store, hash-verified

882 return -x + lnX*a +log(sum);
883 }
884 @SuppressWarnings("unused")
885 private static double lnLowIncGamma1(double a, double x)
886 {
887 double inter = lowIncGamma.lentz(a,x);
888 if(inter <= 1e-16)//The result was ~0, in which case Gamma[a,z] ~= Gamma[a]
889 return lnGamma(a);
890 return a*log(x)-x-log(inter);
891 }
892
893 private static final ContinuedFraction lowIncGamma = new ContinuedFraction()
894 {

Callers

nothing calls this directly

Calls 3

lnGammaMethod · 0.95
lentzMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected