Interface MultivariateFunction
- All Superinterfaces:
Serializable, ToDoubleFunction<double[]>
- All Known Subinterfaces:
DifferentiableMultivariateFunction
An interface representing a multivariate real function.
-
Method Summary
Modifier and TypeMethodDescriptiondefault doubleapply(double... x) Computes the value of the function at x.default doubleapplyAsDouble(double[] x) doublef(double[] x) Computes the value of the function at x.
-
Method Details
-
f
double f(double[] x) Computes the value of the function at x.- Parameters:
x- a real vector.- Returns:
- the function value.
-
apply
default double apply(double... x) Computes the value of the function at x. It delegates the computation to f(). This is simply for Scala convenience.- Parameters:
x- a real vector.- Returns:
- the function value.
-
applyAsDouble
default double applyAsDouble(double[] x) - Specified by:
applyAsDoublein interfaceToDoubleFunction<double[]>
-