pal.math
Interface MFWithGradient

All Superinterfaces:
MultivariateFunction

public interface MFWithGradient
extends MultivariateFunction

interface for a function of several variables with a gradient


Method Summary
 void computeGradient(double[] argument, double[] gradient)
          compute gradient at a point
 double evaluate(double[] argument, double[] gradient)
          compute both function value and gradient at a point
 
Methods inherited from interface pal.math.MultivariateFunction
evaluate, getLowerBound, getNumArguments, getUpperBound
 

Method Detail

evaluate

public double evaluate(double[] argument,
                       double[] gradient)
compute both function value and gradient at a point
Parameters:
argument - function argument (vector)
gradient - gradient (on return)
Returns:
function value

computeGradient

public void computeGradient(double[] argument,
                            double[] gradient)
compute gradient at a point
Parameters:
argument - function argument (vector)
gradient - gradient (on return)