Package jebl.evolution.coalescent
Class Coalescent
java.lang.Object
jebl.evolution.coalescent.Coalescent
- All Implemented Interfaces:
MultivariateFunction
A likelihood function for the coalescent. Takes a tree and a demographic model.
Parts of this class were derived from C++ code provided by Oliver Pybus.
- Version:
- $Id: Coalescent.java 390 2006-07-20 14:33:51Z rambaut $
- Author:
- Andrew Rambaut, Alexei Drummond
-
Constructor Summary
ConstructorsConstructorDescriptionCoalescent(IntervalList intervals, DemographicFunction demographicFunction) Coalescent(RootedTree tree, DemographicFunction demographicFunction) -
Method Summary
Modifier and TypeMethodDescriptionstatic final doublecalculateAnalyticalLogLikelihood(IntervalList intervals) Calculates the log likelihood of this set of coalescent intervals, using an analytical integration over theta.doubleCalculates the log likelihood of this set of coalescent intervals, given a demographic model.static final doublecalculateLogLikelihood(IntervalList intervals, DemographicFunction demographicFunction) Calculates the log likelihood of this set of coalescent intervals, given a demographic model.doubleevaluate(double[] argument) compute function valuedoublegetLowerBound(int n) get lower bound of argument nintget number of argumentsdoublegetUpperBound(int n) get upper bound of argument n
-
Constructor Details
-
Coalescent
-
Coalescent
-
-
Method Details
-
calculateLogLikelihood
public double calculateLogLikelihood()Calculates the log likelihood of this set of coalescent intervals, given a demographic model. -
calculateLogLikelihood
public static final double calculateLogLikelihood(IntervalList intervals, DemographicFunction demographicFunction) Calculates the log likelihood of this set of coalescent intervals, given a demographic model. -
calculateAnalyticalLogLikelihood
Calculates the log likelihood of this set of coalescent intervals, using an analytical integration over theta. -
evaluate
public double evaluate(double[] argument) Description copied from interface:MultivariateFunctioncompute function value- Specified by:
evaluatein interfaceMultivariateFunction- Parameters:
argument- function argument (vector)- Returns:
- function value
-
getNumArguments
public int getNumArguments()Description copied from interface:MultivariateFunctionget number of arguments- Specified by:
getNumArgumentsin interfaceMultivariateFunction- Returns:
- number of arguments
-
getLowerBound
public double getLowerBound(int n) Description copied from interface:MultivariateFunctionget lower bound of argument n- Specified by:
getLowerBoundin interfaceMultivariateFunction- Parameters:
n- argument number- Returns:
- lower bound
-
getUpperBound
public double getUpperBound(int n) Description copied from interface:MultivariateFunctionget upper bound of argument n- Specified by:
getUpperBoundin interfaceMultivariateFunction- Parameters:
n- argument number- Returns:
- upper bound
-
getOrthogonalHints
- Specified by:
getOrthogonalHintsin interfaceMultivariateFunction- Returns:
- an Orthogonal Hints object that can be used by Orthogonal based optimisers to get information about the function
-