|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProfitModel
A ProfitModel
ranks LabelCandidate
s used for prioritizing certain label locations over others.
Generic labeling algorithms like SALabeling
and
GreedyMISLabeling
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.
Method Summary | |
---|---|
double |
getProfit(LabelCandidate candidate)
Returns the profit for placing a label using the given LabelCandidate . |
Method Detail |
---|
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
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |