public class ConfidenceInterval
extends java.lang.Object
Constructor and Description |
---|
ConfidenceInterval(StandardCalculator l,
Parameters p)
Default constructor
|
public ConfidenceInterval(StandardCalculator l, Parameters p)
l
- The likelihood calculator to be used in constructing confidence
intervalsp
- The parameters to construct confidence intervals forpublic Range getCI(Parameter param, double conf) throws RateCategory.RateException, Model.ModelException, TreeException, Parameters.ParameterException, Calculator.CalculatorException
param
- The parameter to construct the interval forconf
- The confidence levelRateCategory.RateException
- Thrown if there is an issue with
a rate category in the model (e.g. a badly formatted rate).Model.ModelException
- Thrown if there is a problem with the
model (e.g. the rate categories differ in their states)TreeException
- Thrown if there is a problem with the tree.Parameters.ParameterException
- Thrown if there is a problem
with the parameters (e.g. a requied parameter is not present)Calculator.CalculatorException
- If an unexpected (i.e. positive or NaN) log likelihood is calculated