Class QNMinimizer.L2RegFunction
java.lang.Object
opennlp.tools.ml.maxent.quasinewton.QNMinimizer.L2RegFunction
- All Implemented Interfaces:
- Function
- Enclosing class:
- QNMinimizer
L2-regularized objective 
Function.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintdouble[]gradientAt(double[] x) Computes the gradient forx.doublevalueAt(double[] x) Computes the function value forx.
- 
Constructor Details- 
L2RegFunction
 
- 
- 
Method Details- 
getDimensionpublic int getDimension()- Specified by:
- getDimensionin interface- Function
- Returns:
- Retrieves the dimension value.
 
- 
valueAtpublic double valueAt(double[] x) Description copied from interface:FunctionComputes the function value forx.
- 
gradientAtpublic double[] gradientAt(double[] x) Description copied from interface:FunctionComputes the gradient forx.- Specified by:
- gradientAtin interface- Function
- Parameters:
- x- The input vector.
- Returns:
- Returns the computed gradient for x.
 
 
-