|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLikelihood.Calculator.SiteCalculator
public static class Calculator.SiteCalculator
Calculates the likelihood of a single site. Implemeted like this as it allows parrallel calculation.
Constructor Summary | |
---|---|
Calculator.SiteCalculator(Site s,
Tree t,
SiteConstraints con,
Probabilities tp)
Constructor mainly for backwards compitability although also still used by some of the ancestral calculations. |
|
Calculator.SiteCalculator(Tree t,
Probabilities tp,
ArrayMap<java.lang.String,Likelihood.NodeLikelihood> nl)
Standard constructor |
Method Summary | |
---|---|
Likelihood.SiteLikelihood |
calculate()
Calculates the likelihood |
Likelihood.SiteLikelihood |
call()
|
Likelihood.SiteLikelihood |
getResult()
Gets the computed result |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Calculator.SiteCalculator(Tree t, Probabilities tp, ArrayMap<java.lang.String,Likelihood.NodeLikelihood> nl)
t
- Treetp
- Pre-computed datastructure containing probabilitiesnl
- Initalised node likelihoods based on the site and any constraints.
See Site.getInitialNodeLikelihoods(Trees.Tree, Utils.ArrayMap, Constraints.SiteConstraints)
.public Calculator.SiteCalculator(Site s, Tree t, SiteConstraints con, Probabilities tp)
s
- The sitet
- The treecon
- Constraints on the sitetp
- Pre-computed datastructure containing probabilitiesMethod Detail |
---|
public Likelihood.SiteLikelihood call()
call
in interface java.util.concurrent.Callable<Likelihood.SiteLikelihood>
public Likelihood.SiteLikelihood calculate()
public Likelihood.SiteLikelihood getResult() throws Likelihood.Calculator.ResultNotComputed
Likelihood.Calculator.ResultNotComputed
- If the result has not
been computed for any reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |