- All Known Subinterfaces:
NamedFunctionOps,NamedFunctionTwoOps,RealValuedFunctOps,RealValuedFunctThreeOps,RealValuedFunctTwoOps
- All Known Implementing Classes:
BezierPolynomial,BicubicInterpolator,BicubicTriangleInterp,BSpline,CubicBezierSpline1,CubicSpline,CubicSpline1,CubicSpline2,LeastSquaresFit,LeastSquaresFit.BSpline,LeastSquaresFit.FunctionBasis,LeastSquaresFit.Linear,LeastSquaresFit.NonLinear,LeastSquaresFit.Polynomial,Polynomial,RealValuedFunction,RealValuedFunctionThree,RealValuedFunctionTwo,RealValuedFunctionVA,RealValuedFunctionVA.Linear,SimFunction,SimFunctionTwo
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface representing a real-valued function with a variable number
of arguments.
This interface provides a single method associated with
a real-valued function: methods that compute a function's domain
and its derivatives are missing, as are methods that determine the
number of arguments that are allowed.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intGet the maximum number of arguments allowed in calls tovalueAt(double...).default intGet the minimum number of arguments allowed in calls tovalueAt(double...).doublevalueAt(double... args) Compute the value of a function f for the given arguments.
-
Method Details
-
valueAt
double valueAt(double... args) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Compute the value of a function f for the given arguments.- Parameters:
args- the arguments- Returns:
- the value of the function for the specified argument
- Throws:
IllegalArgumentException- the function's argument was out of rangeUnsupportedOperationException- the operation is not supported.IllegalStateException- the function was not fully initialized.
-
minArgLength
default int minArgLength()Get the minimum number of arguments allowed in calls tovalueAt(double...).- Returns:
- the minimum number of arguments.
-
maxArgLength
default int maxArgLength()Get the maximum number of arguments allowed in calls tovalueAt(double...).- Returns:
- the maximum number of arguments.
-