Klasse Math2

java.lang.Object
de.labAlive.core.util.Math2

public class Math2 extends Object
  • Methodendetails

    • isInteger

      public static boolean isInteger(double a)
      Heuristic check if a double is (nearly) a integer.
      Parameter:
      a -
      Gibt zurück:
    • isEven

      public static boolean isEven(int i)
    • equals

      public static boolean equals(double a, double b)
      Heuristic comparison if 2 doubles are (nearly) equal.
      Parameter:
      a -
      b -
      Gibt zurück:
    • isZero

      public static boolean isZero(double a)
    • deviates

      public static boolean deviates(double a, double b, double deviation)
    • deviation

      public static double deviation(double a, double b)
    • significantDifference

      public static boolean significantDifference(double a, double b)
    • greaterThanOrEqual

      public static boolean greaterThanOrEqual(double a, double b)
      Gibt zurück:
      Returns true if the value of the first argument is greater than or equal the second argument.
    • isSet

      public static boolean isSet(double a)
    • lowerThanOrEqual

      public static boolean lowerThanOrEqual(double a, double b)
      Gibt zurück:
      Returns true if the value of the first argument is lower than or equal the second argument.
    • getProduct

      public static double[] getProduct(double[] factor1, double[] faktor2)
      Parameter:
      factor1 -
      faktor2 - size must be same as of factor1
      Gibt zurück:
    • getPowerDb

      public static double getPowerDb(double power)
    • getAmplitudeDb

      public static double getAmplitudeDb(double amplitude)
    • getPower

      public static double getPower(double dB)
    • getAmplitude

      public static double getAmplitude(double dB)
    • getChannelCapacity

      public static double getChannelCapacity(double snr)
    • getChannelCapacitySignalPowerOne

      public static double getChannelCapacitySignalPowerOne(double noisePower)
    • powBaseTwo

      public static int powBaseTwo(int exponent)