public class Calculator.SiteCalculator extends java.lang.Object implements java.util.concurrent.Callable<SiteLikelihood>
| Constructor and Description |
|---|
Calculator.SiteCalculator(Site s,
Tree t,
Parameters p,
Probabilities tp,
java.util.Map<java.lang.String,SiteLikelihood.NodeLikelihood> nl)
Standard constructor
|
| Modifier and Type | Method and Description |
|---|---|
SiteLikelihood |
call() |
SiteLikelihood |
getResult()
Gets the computed result
|
public Calculator.SiteCalculator(Site s, Tree t, Parameters p, Probabilities tp, java.util.Map<java.lang.String,SiteLikelihood.NodeLikelihood> nl)
s - The site to calculate the likelihood fort - The tree to be used in the calculationp - The parameters to be used in the calculationtp - Pre-computed datastructure containing probabilitiesnl - Initialised node likelihoods based on the site.
See Site.getInitialNodeLikelihoods(Trees.Tree, java.util.Map).public SiteLikelihood call() throws Parameters.ParameterException
call in interface java.util.concurrent.Callable<SiteLikelihood>Parameters.ParameterExceptionpublic SiteLikelihood getResult() throws Likelihood.Calculator.ResultNotComputed
Likelihood.Calculator.ResultNotComputed - If the result has not
been computed for any reason.