Constraints
Interface Constrainer

All Known Implementing Classes:
NoConstraints

public interface Constrainer

Interface for classes that constrain the values of internal nodes of a tree. This can be used in both likelihood calculations and simulations to enforce that an internal node is a certain value or one of a range of values.

Version:
1.0

Method Summary
 SiteConstraints getConstraints(Tree t, Site s)
          Gets the consraints on an the external nodes of a site given the tree and the state of the leafs.
 

Method Detail

getConstraints

SiteConstraints getConstraints(Tree t,
                               Site s)
                               throws TreeException
Gets the consraints on an the external nodes of a site given the tree and the state of the leafs.

Parameters:
t - The tree
s - The site (need not include data on internal leaves)
Returns:
Constraints on that site
Throws:
TreeException - Thrown if the constraints on that site can't be calculated due to problems with the tree.