Ancestors
Class AncestralMarginal.SiteResult

java.lang.Object
  extended by Ancestors.AncestralMarginal.SiteResult
Enclosing class:
AncestralMarginal

public class AncestralMarginal.SiteResult
extends java.lang.Object

Class to store the results of a marginal ancestral reconstruction for a single site


Method Summary
 double getProbability(java.lang.String node, java.lang.String state)
          Gets thr probability of a given state at a given node
 Site getSite()
          Returns the reconstructed site
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSite

public Site getSite()
Returns the reconstructed site

Returns:
The reconstructed site

getProbability

public double getProbability(java.lang.String node,
                             java.lang.String state)
                      throws AncestralException
Gets thr probability of a given state at a given node

Parameters:
node - The node
state - The state
Returns:
The probability of the state at the node
Throws:
AncestralException - If there is no result for that node/state combination