nr.minimizer
Interface VecMinimizer

All Known Implementing Classes:
Brent, LevenbergMarquardt, LevenbergMarquardtBroyden, NelderMeadMinimizer, VecMinimizerImp

public interface VecMinimizer

minimizes a function of a Vec. The constructor will likely take a #nr.ScalarFunction and the implementation will simply implement an algorithm, or the implementation can specify both.

Author:
Daniel Wachsstock

Method Summary
 double getEpsilon()
          return the relative accuracy parameter
 double minimize(Vec v)
          minimizes a function.
 int numFuncEvals()
          the number of function evaluations it took to converge to the minimum.
 void setEpsilon(double epsilon)
          set the desired relative accuracy parameter.
 

Method Detail

minimize

double minimize(Vec v)
minimizes a function.

Parameters:
v - the initial guess for the function. On return, is set to the local minimum.
Returns:
the value of the function at v
Throws:
DidNotConvergeException - if no minimum could be found.

numFuncEvals

int numFuncEvals()
the number of function evaluations it took to converge to the minimum.

Returns:
the number of function evaluations.

setEpsilon

void setEpsilon(double epsilon)
set the desired relative accuracy parameter. Each implementation decides how to interpret this, if at all


getEpsilon

double getEpsilon()
return the relative accuracy parameter