public interface PenaltyFunction
Modifier and Type | Method and Description |
---|---|
void |
calculateMetricFromScratch()
Calculates the metric from the current subnetwork/ranking
|
double |
getCoef()
Gets the relative weight for this penalty
|
double |
getMetric()
Returns the current penalty metric (unmapped to the cost)
|
java.lang.String |
getPenaltyName()
The penalty name, used for logging functionality
|
long |
getPenaltyScore()
Returns the current penalty score (metric mapped on cost function)
|
boolean |
isGlobalPenalty()
Indicates if this penalty works on the ranking or on (sub)network level
|
void |
revertIncrementalPenalty()
Reverts the penalty score to the previous value, discarding any changes made by the latest incremental update
|
void |
setCoef(double coef)
Sets the relative weight for this penalty
|
void |
setNetwork(Network predictionNetwork)
Sets the network/ranking associated with this penalty
|
void |
updateIncrementalPenalty()
Calculates the new penalty score in an incremental way after (small) changes have been to the network
|
void calculateMetricFromScratch()
double getMetric()
long getPenaltyScore()
java.lang.String getPenaltyName()
void updateIncrementalPenalty()
void revertIncrementalPenalty()
boolean isGlobalPenalty()
void setNetwork(Network predictionNetwork)
predictionNetwork
- network or ranking associated with this penaltydouble getCoef()
void setCoef(double coef)
coef
- the relative weight