edu.umd.cfar.lamp.viper.util
Interface DataMatrices.GetCost
- All Known Implementing Classes:
- DataMatrices.PassThrough
- Enclosing interface:
- DataMatrices
- public static interface DataMatrices.GetCost
This interface is for functor objects that uses the nodes of
a DataMatrix2d
as weighted edges of a
bipartite graph.
Method Summary |
long |
cost(java.lang.Object obj)
Converts a node on a bipartite graph to a weight. |
cost
public long cost(java.lang.Object obj)
- Converts a node on a bipartite graph to a weight.
- Parameters:
obj
- a node in the matrix / edge object in the graph
- Returns:
long
representing the weight/cost of
the given edge