public class Coalescent extends java.lang.Object implements MultivariateFunction
| Constructor and Description |
|---|
Coalescent(IntervalList intervals,
DemographicFunction demographicFunction) |
Coalescent(RootedTree tree,
DemographicFunction demographicFunction) |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculateAnalyticalLogLikelihood(IntervalList intervals)
Calculates the log likelihood of this set of coalescent intervals,
using an analytical integration over theta.
|
double |
calculateLogLikelihood()
Calculates the log likelihood of this set of coalescent intervals,
given a demographic model.
|
static double |
calculateLogLikelihood(IntervalList intervals,
DemographicFunction demographicFunction)
Calculates the log likelihood of this set of coalescent intervals,
given a demographic model.
|
double |
evaluate(double[] argument)
compute function value
|
double |
getLowerBound(int n)
get lower bound of argument n
|
int |
getNumArguments()
get number of arguments
|
OrthogonalHints |
getOrthogonalHints() |
double |
getUpperBound(int n)
get upper bound of argument n
|
public Coalescent(RootedTree tree, DemographicFunction demographicFunction)
public Coalescent(IntervalList intervals, DemographicFunction demographicFunction)
public double calculateLogLikelihood()
public static final double calculateLogLikelihood(IntervalList intervals, DemographicFunction demographicFunction)
public static final double calculateAnalyticalLogLikelihood(IntervalList intervals)
public double evaluate(double[] argument)
MultivariateFunctionevaluate in interface MultivariateFunctionargument - function argument (vector)public int getNumArguments()
MultivariateFunctiongetNumArguments in interface MultivariateFunctionpublic double getLowerBound(int n)
MultivariateFunctiongetLowerBound in interface MultivariateFunctionn - argument numberpublic double getUpperBound(int n)
MultivariateFunctiongetUpperBound in interface MultivariateFunctionn - argument numberpublic OrthogonalHints getOrthogonalHints()
getOrthogonalHints in interface MultivariateFunctionhttp://code.google.com/p/jebl2/