Class MarkingBasedSelectionWeightCostFunction
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.enricher.optimizer.MarkingBasedSelectionWeightCostFunction
-
- All Implemented Interfaces:
CostFunction
public class MarkingBasedSelectionWeightCostFunction extends java.lang.Object implements CostFunction
-
-
Constructor Summary
Constructors Constructor Description MarkingBasedSelectionWeightCostFunction(java.util.Map<java.lang.String,int[]> markingBasedSelections)
-
Method Summary
All Methods Instance Methods Concrete 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)Simply return the average error (not squared)intgetSum(int... array)
-
-
-
Method Detail
-
getSum
public int getSum(int... array)
-
getPartialDerivation
public double getPartialDerivation(double[] theta, int i)Simply return the average error (not squared)- Specified by:
getPartialDerivationin interfaceCostFunction- Parameters:
theta- the weight vector- Returns:
- slope of the curve in the dimension i (value of the partial derivation in the i-th dimension)
-
getCost
public double getCost(double[] theta)
Description copied from interface:CostFunctionreturns the cost for a current assignment to the parameter vector theta.- Specified by:
getCostin interfaceCostFunction- Parameters:
theta- double[] the parameter vector- Returns:
- the cost for the current assignment of the vector.
-
-