org.jscience.mathematics.analysis.optimization
Interface CostFunction


public interface CostFunction

This interface represents a cost function to be minimized.


Method Summary
 double cost(double[] x)
          Compute the cost associated to the given parameters array.
 

Method Detail

cost

double cost(double[] x)
            throws CostException
Compute the cost associated to the given parameters array.

Parameters:
x - parameters array
Returns:
cost associated to the parameters array
Throws:
CostException - if no cost can be computed for the parameters
See Also:
PointCostPair