public class ModelParameters extends java.lang.Object implements MultivariateFunction
| Modifier and Type | Field and Description |
|---|---|
static int |
FRACDIGITS
fractional digits desired for parameters
|
| Constructor and Description |
|---|
ModelParameters(SitePattern sp,
SubstitutionModel m)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
estimate()
estimate (approximate) values for the model parameters
from the data using a neighbor-joining tree
|
double[] |
estimateFromTree(ParameterizedTree t)
estimate (approximate) values for the model parameters
from the data using a given (parameterized) tree
|
double |
evaluate(double[] params)
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 static final int FRACDIGITS
public ModelParameters(SitePattern sp, SubstitutionModel m)
sp - site patternm - substitution modelpublic double[] estimate()
public double[] estimateFromTree(ParameterizedTree t)
public double evaluate(double[] params)
MultivariateFunctionevaluate in interface MultivariateFunctionparams - 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 MultivariateFunction