Package org.djunits.value.vfloat.scalar
Class FloatScalarTest.MathTester
java.lang.Object
org.djunits.value.vfloat.scalar.FloatScalarTest.MathTester
- Enclosing class:
- FloatScalarTest
abstract static class FloatScalarTest.MathTester extends Object
-
Constructor Summary
Constructors Constructor Description MathTester()
-
Method Summary
Modifier and Type Method Description static void
tester(float inputValue, String operation, org.djunits.value.vfloat.scalar.base.AbstractFloatScalar<?,?> actualResult, float precision, FloatScalarTest.FloatToFloat function)
Test a math function.
-
Constructor Details
-
MathTester
MathTester()
-
-
Method Details
-
tester
public static void tester(float inputValue, String operation, org.djunits.value.vfloat.scalar.base.AbstractFloatScalar<?,?> actualResult, float precision, FloatScalarTest.FloatToFloat function)Test a math function.- Parameters:
inputValue
- float; unprocessed valueoperation
- String; description of method that is being testedactualResult
- FloatScalar<?>; the actual result of the operationprecision
- float; expected accuracyfunction
- FloatToFloat; encapsulated function that converts one inputValue to an outputValue
-