nct.networkblast
Class CompatibilityScoreModel
java.lang.Object
nct.networkblast.CompatibilityScoreModel
- All Implemented Interfaces:
- ScoreModel<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double>
public class CompatibilityScoreModel
- extends java.lang.Object
- implements ScoreModel<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double>
This interface will provide the scoring interface for all scoring
algorithms to be used on a Graph object. Consequently, all scoring
algorithms should implement this interface.
Method Summary |
double |
scoreEdge(CompatibilityNode<java.lang.String,java.lang.Double> srcNode,
CompatibilityNode<java.lang.String,java.lang.Double> destNode,
Graph<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double> g)
Given a sourceNode and destNode from a graph, this method will return
the score of the edge. |
double |
scoreGraph(Graph<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double> g)
|
double |
scoreNode(CompatibilityNode<java.lang.String,java.lang.Double> node,
Graph<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double> g)
Given a node from graph, this function will return
the score of the node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompatibilityScoreModel
public CompatibilityScoreModel(java.util.List<? extends Graph<java.lang.String,java.lang.Double>> cg,
ScoreModel<java.lang.String,java.lang.Double> logScore)
scoreEdge
public double scoreEdge(CompatibilityNode<java.lang.String,java.lang.Double> srcNode,
CompatibilityNode<java.lang.String,java.lang.Double> destNode,
Graph<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double> g)
- Given a sourceNode and destNode from a graph, this method will return
the score of the edge.
- Specified by:
scoreEdge
in interface ScoreModel<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double>
- Parameters:
srcNode
- Source node of edge to score.destNode
- Dest node of edge to score.g
- The graph that contains the edge to score.
- Returns:
- The score for the given pair of nodes in the given graph.
scoreNode
public double scoreNode(CompatibilityNode<java.lang.String,java.lang.Double> node,
Graph<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double> g)
- Given a node from graph, this function will return
the score of the node.
- Specified by:
scoreNode
in interface ScoreModel<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double>
- Parameters:
node
- Node to score.g
- The graph that contains the node to score.
- Returns:
- The score for the node in the given graph.
scoreGraph
public double scoreGraph(Graph<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double> g)
- Specified by:
scoreGraph
in interface ScoreModel<CompatibilityNode<java.lang.String,java.lang.Double>,java.lang.Double>