LabelType - The type for node's possible labels. Only used as an
enumeration.public interface EnergyFunctionSolver<LabelType>
| Modifier and Type | Method and Description |
|---|---|
double |
getBelief(int i,
int label)
Gets the belief for node i with the specified label.
|
void |
init(EnergyFunction<LabelType> f)
Initializes internal state and stores the energy function for future
solutions.
|
boolean |
solve()
Solves for the energy function passed in during initialize, e.g., compute
the beliefs.
|
void init(EnergyFunction<LabelType> f)
f - The energy function to initialize againstboolean solve()
double getBelief(int i,
int label)
i - The index of the node whose belief associated with the input
label is wantedlabel - The label for the node whose belief is desired