Class Constants


  • final class Constants
    extends java.lang.Object
    Constants for distribution calculations.

    Constants should evaluate to the closest IEEE double. Expressions may have been computed using an arbitrary precision math library or obtained from existing online resources. Some expressions will not be the closest double if evaluated using the JDK's Math functions using double precision.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static double HALF_LOG_TWO_PI
      0.5 * ln(2 pi).
      (package private) static double LN_TWO
      ln(2).
      (package private) static double ROOT_PI_DIV_TWO
      sqrt(pi / 2).
      (package private) static double ROOT_TWO
      sqrt(2).
      (package private) static double ROOT_TWO_DIV_PI
      sqrt(2 / pi).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Constants()
      No instances.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • ROOT_TWO

        static final double ROOT_TWO
        sqrt(2). https://oeis.org/A002193.
        See Also:
        Constant Field Values
      • ROOT_TWO_DIV_PI

        static final double ROOT_TWO_DIV_PI
        sqrt(2 / pi). https://oeis.org/A076668.
        See Also:
        Constant Field Values
      • ROOT_PI_DIV_TWO

        static final double ROOT_PI_DIV_TWO
        sqrt(pi / 2). https://oeis.org/A069998.
        See Also:
        Constant Field Values
      • HALF_LOG_TWO_PI

        static final double HALF_LOG_TWO_PI
        0.5 * ln(2 pi). https://oeis.org/A075700.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Constants

        private Constants()
        No instances.