nct.score
Class SimpleScoreModel<NodeType extends WeightedNode<?,java.lang.Double>>

java.lang.Object
  extended by nct.score.SimpleScoreModel<NodeType>
All Implemented Interfaces:
ScoreModel<NodeType,java.lang.Double>

public class SimpleScoreModel<NodeType extends WeightedNode<?,java.lang.Double>>
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


Constructor Summary
SimpleScoreModel()
           
 
Method Summary
 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.
 double scoreGraph(Graph<NodeType,java.lang.Double> graph)
           
 double scoreNode(NodeType node, Graph<NodeType,java.lang.Double> graph)
          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
 

Constructor Detail

SimpleScoreModel

public SimpleScoreModel()
Method Detail

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 WeightedNode<?,java.lang.Double>,java.lang.Double>
Parameters:
srcNode - node bewteen which it and destNode generates a score
destNode - node between which it and srcNode generates a score
graph - 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 WeightedNode<?,java.lang.Double>,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> graph)
Specified by:
scoreGraph in interface ScoreModel<NodeType extends WeightedNode<?,java.lang.Double>,java.lang.Double>