Package org.gorpipe.gor.util
Class GLogGamma
java.lang.Object
org.gorpipe.gor.util.GLogGamma
Compute the log of the Gamma-function for integer values, i.e.,
compute log(n!) for n = 0,1,2,...
Computed values are stored to avoid recalculations.
Original version by Alfred Hauksson.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GLogGamma
public GLogGamma()
-
-
Method Details
-
get
public static double get(int i) Returns log(i!).- Parameters:
i- non-negative integer- Returns:
- log(i!)
-