pal.math
Interface MFWithGradient

All Superinterfaces:
MultivariateFunction

public interface MFWithGradient
extends MultivariateFunction

interface for a function of several variables with a gradient

Version:
$Id: MFWithGradient.java,v 1.2 2001/07/13 14:39:13 korbinian Exp $
Author:
Korbinian Strimmer

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, getOrthogonalHints, getUpperBound
 

Method Detail

evaluate

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

void computeGradient(double[] argument,
                     double[] gradient)
compute gradient at a point

Parameters:
argument - function argument (vector)
gradient - gradient (on return)