Class GLogGamma

java.lang.Object
org.gorpipe.gor.util.GLogGamma

public class GLogGamma
extends java.lang.Object
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 
    Constructor Description
    GLogGamma()  
  • Method Summary

    Modifier and Type Method Description
    static double get​(int i)
    Returns log(i!).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • get

      public static double get​(int i)
      Returns log(i!).
      Parameters:
      i - non-negative integer
      Returns:
      log(i!)