public interface IProfitModel
IProfitModel
ranks LabelCandidate
s used for prioritizing certain label locations over others.
Generic labeling algorithm GenericLabeling
will use the ranking to decide
which LabelCandidate
s to eliminate.
LabelCandidate
s with a high profit will be preferred over LabelCandidate
s with a low profit.
Modifier and Type | Method and Description |
---|---|
double |
getProfit(LabelCandidate candidate)
Returns the profit for placing a label using the given
LabelCandidate . |
double getProfit(LabelCandidate candidate)
LabelCandidate
.
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
.
candidate
- the candidate