API documentation of the 'jhplot.HParam' Java class
HParam
jhplot

Class HParam

HParam
jhplot

Class HParam



  • public class HParamextends 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 setFastMath(False).
    • Constructor Summary

      Constructors 
      Constructor and Description
      HParam() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static booleanisFastMath()
      Check is fast math calculation enabled.
      static voidsetExactMath()
      Set exact math calculation using Java Math.
      static voidsetFastMath()
      Set fast math calculation (4-5 times faster than Java Math).
      static voidsetFastMath(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

      • setFastMath

        public static void setFastMath(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.
      • isFastMath

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

        public static void setFastMath()
        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 2.1 © DataMelt by jWork.ORG