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

Class HParam

HParam
jhplot

Class HParam



  • public class HParamextends 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 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.0 © DataMelt by jWork.ORG