Klasse Math2
java.lang.Object
de.labAlive.core.util.Math2
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic booleandeviates(double a, double b, double deviation) static doubledeviation(double a, double b) static booleanequals(double a, double b) Heuristic comparison if 2 doubles are (nearly) equal.static doublegetAmplitude(double dB) static doublegetAmplitudeDb(double amplitude) static doublegetChannelCapacity(double snr) static doublegetChannelCapacitySignalPowerOne(double noisePower) static doublegetPower(double dB) static doublegetPowerDb(double power) static double[]getProduct(double[] factor1, double[] faktor2) static booleangreaterThanOrEqual(double a, double b) static booleanisEven(int i) static booleanisInteger(double a) Heuristic check if a double is (nearly) a integer.static booleanisSet(double a) static booleanisZero(double a) static booleanlowerThanOrEqual(double a, double b) static intpowBaseTwo(int exponent) static booleansignificantDifference(double a, double b)
-
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)
-