- All Superinterfaces:
DoubleUnaryOperator,NamedObjectOps,RealValuedFunctOps,RealValuedFunctVAOps
- All Known Implementing Classes:
SimFunction
Interface for named objects that provide a function.
-
Method Summary
Modifier and TypeMethodDescriptiondoublederivAt(double arg) Evaluate the function's first derivative.booleanDetermine if the maximum value for the domain is in the domainbooleanDetermine if the minimum value for the domain is in the domaindoubleGet the maximum value in the domain of the function.doubleGet the minimum value in the domain of the function.Get the RealValuedFunction associated with this named object.doublesecondDerivAt(double arg) Evaluate the function's second derivative.doublevalueAt(double arg) Call the function.Methods inherited from interface org.bzdev.obnaming.NamedObjectOps
canDelete, delete, deletePending, getName, isDeleted, isInternedMethods 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:
valueAtin 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.
-