Interface Function
- All Known Implementing Classes:
NegLogLikelihood,ParallelNegLogLikelihood,QNMinimizer.L2RegFunction
public interface Function
Interface for a function.
-
Method Summary
Modifier and TypeMethodDescriptionintdouble[]gradientAt(double[] x) Computes the gradient forx.doublevalueAt(double[] x) Computes the function value forx.
-
Method Details
-
getDimension
int getDimension()- Returns:
- Retrieves the dimension value.
-
valueAt
double valueAt(double[] x) Computes the function value forx.- Parameters:
x- The input vector.- Returns:
- Returns the computed value for
x.
-
gradientAt
double[] gradientAt(double[] x) Computes the gradient forx.- Parameters:
x- The input vector.- Returns:
- Returns the computed gradient for
x.
-