Documentation of 'jhplot.HParam' Java class.
HParam
jhplot

Class HParam



  • public class HParam
    extends java.lang.Object
    Global setting for all DMelt jhplot class methods for mathematical calculations. By default, DMelt uses Java Math library that provides fast elementary functions with e-14 accuracy. If you set false to fast calculations, the standard Java Math is used. They are usually about 2-3 times slower, but have higher accuracy. By default, fast calculations are enabled.

    If you need full Java accuracy, set setMath(False).
    • Constructor Summary

      Constructors 
      Constructor and Description
      HParam() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean isMath()
      Check is fast math calculation enabled.
      static void setExactMath()
      Set exact math calculation using Java Math.
      static void setMath()
      Set fast math calculation (4-5 times faster than Java Math).
      static void setMath(boolean fast)
      Set fast math calculation (3-5 times faster than Java Math).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HParam

        public HParam()
    • Method Detail

      • setMath

        public static void setMath(boolean fast)
        Set fast math calculation (3-5 times faster than Java Math). The typical precision is E-14 for fast calculations. The default does not use fast calculations.
        Parameters:
        fast - if false, all elementary functions are calculated with the standard Java Math precision. If true, fast calculation with the jafama FastJava E-11 precision.
      • isMath

        public static boolean isMath()
        Check is fast math calculation enabled.
        Returns:
        is fast calculation enabled?
      • setMath

        public static void setMath()
        Set fast math calculation (4-5 times faster than Java Math). The typical precision is E-14 for fast calculations.
      • setExactMath

        public static void setExactMath()
        Set exact math calculation using Java Math.

DMelt 3.0 © DataMelt by jWork.ORG