Interface CostFunction
-
- All Known Implementing Classes:
MarkingBasedSelectionWeightCostFunction
public interface CostFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetCost(double[] theta)returns the cost for a current assignment to the parameter vector theta.doublegetPartialDerivation(double[] theta, int i)returns the partial derivation of the i-th index of the function
-
-
-
Method Detail
-
getCost
double getCost(double[] theta)
returns the cost for a current assignment to the parameter vector theta.- Parameters:
theta- double[] the parameter vector- Returns:
- the cost for the current assignment of the vector.
-
getPartialDerivation
double getPartialDerivation(double[] theta, int i)returns the partial derivation of the i-th index of the function- Parameters:
theta- the weight vectorindex- the index of the weight, of which the derivative is to be returned.- Returns:
- slope of the curve in the dimension i (value of the partial derivation in the i-th dimension)
-
-