Package org.djunits.value.vdouble.scalar
Class DoubleScalarTest.MathTester
java.lang.Object
org.djunits.value.vdouble.scalar.DoubleScalarTest.MathTester
- Enclosing class:
- DoubleScalarTest
abstract static class DoubleScalarTest.MathTester extends Object
-
Constructor Summary
Constructors Constructor Description MathTester()
-
Method Summary
Modifier and Type Method Description static void
tester(double inputValue, String operation, org.djunits.value.vdouble.scalar.base.AbstractDoubleScalar<?,?> 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, org.djunits.value.vdouble.scalar.base.AbstractDoubleScalar<?,?> 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
-