Package com.imsl.datamining.neural
Class QuasiNewtonTrainer.BlockGradObjective
java.lang.Object
com.imsl.datamining.neural.QuasiNewtonTrainer.Objective
com.imsl.datamining.neural.QuasiNewtonTrainer.GradObjective
com.imsl.datamining.neural.QuasiNewtonTrainer.BlockGradObjective
- All Implemented Interfaces:
MinUnconMultiVar.Function,MinUnconMultiVar.Gradient
- Enclosing class:
- QuasiNewtonTrainer
-
Field Summary
Fields inherited from class com.imsl.datamining.neural.QuasiNewtonTrainer.GradObjective
nFunctionEvaluations, nObs, nY -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BlockGradObjective
protected BlockGradObjective()
-
-
Method Details
-
f
public double f(double[] weights) Description copied from interface:MinUnconMultiVar.FunctionPublic interface for the multivariate function to be minimized.- Specified by:
fin interfaceMinUnconMultiVar.Function- Overrides:
fin classQuasiNewtonTrainer.Objective- Parameters:
weights- adoublearray, the point at which the function is to be evaluated- Returns:
- a
double, the value of the function at x
-
gradient
public void gradient(double[] weights, double[] gradient) Description copied from interface:MinUnconMultiVar.GradientPublic interface for the gradient of the multivariate function to be minimized.- Specified by:
gradientin interfaceMinUnconMultiVar.Gradient- Overrides:
gradientin classQuasiNewtonTrainer.GradObjective- Parameters:
weights- adoublearray, the point at which the gradient of the function is to be evaluatedgradient- adoublearray, the value of the gradient of the function at x
-