Class LanczosApproximation

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static double[] LANCZOS
      Lanczos coefficients.
      private static double LANCZOS_G
      \( g = \frac{607}{128} \).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LanczosApproximation()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double g()  
      static double value​(double x)
      Computes the Lanczos approximation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LANCZOS_G

        private static final double LANCZOS_G
        \( g = \frac{607}{128} \).
        See Also:
        Constant Field Values
      • LANCZOS

        private static final double[] LANCZOS
        Lanczos coefficients.
    • Constructor Detail

      • LanczosApproximation

        private LanczosApproximation()
        Private constructor.
    • Method Detail

      • value

        public static double value​(double x)
        Computes the Lanczos approximation.
        Parameters:
        x - Argument.
        Returns:
        the Lanczos approximation.
      • g

        public static double g()
        Returns:
        the Lanczos constant \( g = \frac{607}{128} \).