Search this API

y.layout
Interface ProfitModel

All Known Implementing Classes:
LabelRanking

public interface ProfitModel

This is an interface for ranking LabelCandidates.


Method Summary
 double getProfit(LabelCandidate candidate)
          Returns the profit for placing a label-candidate.
 

Method Detail

getProfit

double getProfit(LabelCandidate candidate)
Returns the profit for placing a label-candidate. Higher profit means higher probability that the candidate is chosen by a labeling algorithm.

Parameters:
candidate - a label candidate
Returns:
a value between 0 and 1.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.