Package org.djunits.value.vdouble.scalar
Class DoubleScalarTest.MathTester
java.lang.Object
org.djunits.value.vdouble.scalar.DoubleScalarTest.MathTester
- Enclosing class:
- DoubleScalarTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtester(double inputValue, String operation, DoubleScalar<?, ?> actualResult, double precision, DoubleScalarTest.DoubleToDouble function) Test a math function.
-
Constructor Details
-
MathTester
MathTester()
-
-
Method Details
-
tester
public static void tester(double inputValue, String operation, DoubleScalar<?, ?> actualResult, double precision, DoubleScalarTest.DoubleToDouble function) Test a math function.- Parameters:
inputValue- unprocessed valueoperation- description of method that is being testedactualResult- the actual result of the operationprecision- expected accuracyfunction- encapsulated function that converts one inputValue to an outputValue
-