org.omegahat.Numerics.Optimizers
Class BasicDerivatives
java.lang.Object
|
+--org.omegahat.Numerics.Optimizers.BasicDerivatives
- All Implemented Interfaces:
- Derivatives, Evaluable, Gradient, Hessian
- public class BasicDerivatives
- extends java.lang.Object
- implements Derivatives
|
Field Summary |
protected Gradient |
gradient
Object used to compute the first derivative at different values of the
argument, not the value itself. |
protected Hessian |
hessian
Object used to compute the second derivative at different values of the
argument, not the value itself. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gradient
protected Gradient gradient
- Object used to compute the first derivative at different values of the
argument, not the value itself.
hessian
protected Hessian hessian
- Object used to compute the second derivative at different values of the
argument, not the value itself.
BasicDerivatives
public BasicDerivatives(Gradient gradient,
Hessian hessian)
gradient
public double[] gradient(ParameterSet params)
throws java.lang.Throwable
- Specified by:
gradient in interface Gradient
hessian
public Matrix hessian(ParameterSet params)
throws java.lang.Throwable
- Specified by:
hessian in interface Hessian
derivativeValues
public DerivativeValues derivativeValues(ParameterSet params)
- Specified by:
derivativeValues in interface Derivatives
eval
public java.lang.Object eval(java.lang.Object[] args,
Evaluator evaluator)
- Specified by:
eval in interface Evaluable
eval
public java.lang.Object eval(Evaluator evaluator)
throws java.lang.Throwable
- Specified by:
eval in interface Evaluable
getHessian
public Hessian getHessian()
setHessian
public Hessian setHessian(Hessian h)
getGradient
public Gradient getGradient()
setGradient
public Gradient setGradient(Gradient g)