Package org.djunits.value.vdouble.scalar
Class DoubleScalarTest.MathTester
java.lang.Object
org.djunits.value.vdouble.scalar.DoubleScalarTest.MathTester
- Enclosing class:
- DoubleScalarTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
tester
(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
- double; unprocessed valueoperation
- String; description of method that is being testedactualResult
- DoubleScalar<?>; the actual result of the operationprecision
- double; expected accuracyfunction
- DoubleToDouble; encapsulated function that converts one inputValue to an outputValue
-