Documentation of 'jhplot.HParam' Java class.
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 setMath(False).
    • 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 2.7 © DataMelt by jWork.ORG