package umontreal.iro.lecuyer.functions;
/**
* This interface should be implemented by classes which represent univariate
* mathematical functions. It is used to pass an arbitrary function of one
* variable as argument to another function. For example, it is used
* in {@link umontreal.iro.lecuyer.util.RootFinder RootFinder} to find
* the zeros of a function.
*
*/
public interface MathFunction {
/**
* Returns the value of the function evaluated at x.
*
* @param x value at which the distribution function is evaluated
*
* @return function evaluated at x
*
*/
public double evaluate (double x);
}
Ads help maintain this website.