- All Superinterfaces:
DoubleUnaryOperator
,NamedObjectOps
,RealValuedFunctOps
,RealValuedFunctVAOps
- All Known Implementing Classes:
SimFunction
Interface for named objects that provide a function.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
derivAt
(double arg) Evaluate the function's first derivative.boolean
Determine if the maximum value for the domain is in the domainboolean
Determine if the minimum value for the domain is in the domaindouble
Get the maximum value in the domain of the function.double
Get the minimum value in the domain of the function.Get the RealValuedFunction associated with this named object.double
secondDerivAt
(double arg) Evaluate the function's second derivative.double
valueAt
(double arg) Call the function.Methods inherited from interface org.bzdev.obnaming.NamedObjectOps
canDelete, delete, deletePending, getName, isDeleted, isInterned
Methods inherited from interface org.bzdev.math.RealValuedFunctOps
andThen, andThen, applyAsDouble, compose, compose, maxArgLength, minArgLength, valueAt
-
Method Details
-
getFunction
RealValuedFunction getFunction()Get the RealValuedFunction associated with this named object.- Returns:
- the function; null if not defined
-
getDomainMin
double getDomainMin()Get the minimum value in the domain of the function.- Returns:
- the minimum value
-
domainMinClosed
boolean domainMinClosed()Determine if the minimum value for the domain is in the domain- Returns:
- true if the domain's minimum value is in the domain; false otherwise
-
getDomainMax
double getDomainMax()Get the maximum value in the domain of the function.- Returns:
- the maximum value
-
domainMaxClosed
boolean domainMaxClosed()Determine if the maximum value for the domain is in the domain- Returns:
- true if the maximum value for the domain is in the domain; false otherwise
-
valueAt
Call the function.- Specified by:
valueAt
in interfaceRealValuedFunctOps
- Parameters:
arg
- the function's argument- Returns:
- the value of the function for the given argument
- Throws:
IllegalArgumentException
- the function's argument was out of rangeUnsupportedOperationException
- the operation is not supported.
-
derivAt
Evaluate the function's first derivative.- Parameters:
arg
- the function's argument- Returns:
- the value of the function for the given argument
- Throws:
IllegalArgumentException
- the function's argument was out of rangeUnsupportedOperationException
- the operation is not supported.
-
secondDerivAt
Evaluate the function's second derivative.- Parameters:
arg
- the function's argument- Returns:
- the value of the function for the given argument
- Throws:
IllegalArgumentException
- the function's argument was out of rangeUnsupportedOperationException
- the operation is not supported.
-