nct.score
Class SimpleEdgeScoreModel<NodeType extends java.lang.Comparable<? super NodeType>>
java.lang.Object
nct.score.SimpleEdgeScoreModel<NodeType>
- All Implemented Interfaces:
- ScoreModel<NodeType,java.lang.Double>
public class SimpleEdgeScoreModel<NodeType extends java.lang.Comparable<? super NodeType>>
- extends java.lang.Object
- implements ScoreModel<NodeType,java.lang.Double>
This class implements a simple score model that basically
just returns the weight associated with a particular object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleEdgeScoreModel
public SimpleEdgeScoreModel()
scoreEdge
public double scoreEdge(NodeType srcNode,
NodeType destNode,
Graph<NodeType,java.lang.Double> graph)
- For the two nodes from the specified graph graph, return the log
likelihood score between the complex model and the null model.
- Specified by:
scoreEdge
in interface ScoreModel<NodeType extends java.lang.Comparable<? super NodeType>,java.lang.Double>
- Parameters:
srcNode
- node bewteen which it and destNode generates a scoredestNode
- node between which it and srcNode generates a scoregraph
- graph containing both srcNode and destNode
- Returns:
- the score of the pathway between the nodes or 0 if the same node
scoreNode
public double scoreNode(NodeType node,
Graph<NodeType,java.lang.Double> graph)
- Description copied from interface:
ScoreModel
- Given a node from graph, this function will return
the score of the node.
- Specified by:
scoreNode
in interface ScoreModel<NodeType extends java.lang.Comparable<? super NodeType>,java.lang.Double>
- Parameters:
node
- Node to score.graph
- The graph that contains the node to score.
- Returns:
- The score for the node in the given graph.
scoreGraph
public double scoreGraph(Graph<NodeType,java.lang.Double> g)
- Specified by:
scoreGraph
in interface ScoreModel<NodeType extends java.lang.Comparable<? super NodeType>,java.lang.Double>