Enum Class TMath.Impl

java.lang.Object
java.lang.Enum<TMath.Impl>
edu.cmu.tetrad.util.TMath.Impl
All Implemented Interfaces:
Serializable, Comparable<TMath.Impl>, Constable
Enclosing class:
TMath

public static enum TMath.Impl extends Enum<TMath.Impl>
Enumerates the available implementation strategies for mathematical computations. Each strategy represents a distinct approach to balancing precision, performance, and adherence to mathematical standards.
  • Enum Constant Details

    • MATH

      public static final TMath.Impl MATH
      Represents the default mathematical implementation strategy in the system. This option is used when no specific preference between precision and performance is required.
    • STRICT

      public static final TMath.Impl STRICT
      Represents the strict implementation strategy for mathematical computations. This option prioritizes precision and strict adherence to mathematical standards, potentially at the cost of computational performance.
    • FAST

      public static final TMath.Impl FAST
      Represents the fast implementation strategy for mathematical computations. This option is optimized for performance and may prioritize speed over precision or strict adherence to mathematical standards.
  • Method Details

    • values

      public static TMath.Impl[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TMath.Impl valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null