Package ej.microai.util
Class TestUtilities
- java.lang.Object
-
- ej.microai.util.TestUtilities
-
public class TestUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TestUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancompareFloat(float referenceFloat, float checkFloat, float tolerance)Compares 2 float with a tolerance.
-
-
-
Method Detail
-
compareFloat
public static boolean compareFloat(float referenceFloat, float checkFloat, float tolerance)Compares 2 float with a tolerance.- Parameters:
referenceFloat- the reference float.checkFloat- the float to check.tolerance- the acceptable tolerance.- Returns:
- true if the difference between the two components is smaller or equal to the tolerance.
-
-