Package org.djutils.math.functions
Record Class DerivativeTest.Scenario
java.lang.Object
java.lang.Record
org.djutils.math.functions.DerivativeTest.Scenario
- Record Components:
 mathFunction- the MathFunction to run the tests onminimum- lowestxvalue of to testmaximum- highestxvalue of to teststeps- number of points along the range[lowest, highest]to perform the testdelta- range aroundxtest point to verify derivativeepsilon- range aroundf(x)test point to verify derivative
- Enclosing class:
 - DerivativeTest
 
static record DerivativeTest.Scenario(MathFunction mathFunction, double minimum, double maximum, int steps, double delta, double epsilon)
extends Record
Test scenario.
- 
Constructor Summary
ConstructorsConstructorDescriptionScenario(MathFunction mathFunction, double minimum, double maximum, int steps, double delta, double epsilon) Creates an instance of aScenariorecord class. - 
Method Summary
Modifier and TypeMethodDescriptiondoubledelta()Returns the value of thedeltarecord component.doubleepsilon()Returns the value of theepsilonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themathFunctionrecord component.doublemaximum()Returns the value of themaximumrecord component.doubleminimum()Returns the value of theminimumrecord component.intsteps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
Scenario
Scenario(MathFunction mathFunction, double minimum, double maximum, int steps, double delta, double epsilon) Creates an instance of aScenariorecord class.- Parameters:
 mathFunction- the value for themathFunctionrecord componentminimum- the value for theminimumrecord componentmaximum- the value for themaximumrecord componentsteps- the value for thestepsrecord componentdelta- the value for thedeltarecord componentepsilon- the value for theepsilonrecord component
 
 - 
 - 
Method Details
- 
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. - 
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. - 
mathFunction
Returns the value of themathFunctionrecord component.- Returns:
 - the value of the 
mathFunctionrecord component 
 - 
minimum
public double minimum()Returns the value of theminimumrecord component.- Returns:
 - the value of the 
minimumrecord component 
 - 
maximum
public double maximum()Returns the value of themaximumrecord component.- Returns:
 - the value of the 
maximumrecord component 
 - 
steps
public int steps()Returns the value of thestepsrecord component.- Returns:
 - the value of the 
stepsrecord component 
 - 
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
 - the value of the 
deltarecord component 
 - 
epsilon
public double epsilon()Returns the value of theepsilonrecord component.- Returns:
 - the value of the 
epsilonrecord component 
 
 -