Interface Function
- All Known Implementing Classes:
NegLogLikelihood
,ParallelNegLogLikelihood
,QNMinimizer.L2RegFunction
public interface Function
Interface for a function.
-
Method Summary
Modifier and TypeMethodDescriptionint
double[]
gradientAt
(double[] x) Computes the gradient forx
.double
valueAt
(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
.
-