public class SimpleProfitModel extends Object implements IProfitModel
SimpleProfitModel implements the ranking for edge and node labels.
In this implementation node label positions have no ranking, the profit for all candidates is 1.
The ranking of edge label positions depends on the locations described in the PreferredPlacementDescriptor
associated with an edge.
| Constructor and Description |
|---|
SimpleProfitModel()
Creates a new instance of
SimpleProfitModel. |
| Modifier and Type | Method and Description |
|---|---|
double |
getProfit(LabelCandidate candidate)
Returns the profit for placing a label using the given
LabelCandidate. |
public SimpleProfitModel()
SimpleProfitModel.public double getProfit(LabelCandidate candidate)
IProfitModelLabelCandidate.
Higher profit means better candidates. Hence, there is a higher probability that the candidate is chosen by a labeling algorithm.
Profits need to have a value between 0 and 1.
getProfit in interface IProfitModelcandidate - the candidate