Package pal.eval
Class ModelParameters
- java.lang.Object
-
- pal.eval.ModelParameters
-
- All Implemented Interfaces:
MultivariateFunction
public class ModelParameters extends java.lang.Object implements MultivariateFunction
estimates substitution model parameters from the data- Version:
- $Id: ModelParameters.java,v 1.9 2002/12/05 04:27:28 matt Exp $
- Author:
- Korbinian Strimmer
-
-
Field Summary
Fields Modifier and Type Field Description static intFRACDIGITSfractional digits desired for parameters
-
Constructor Summary
Constructors Constructor Description ModelParameters(SitePattern sp, SubstitutionModel m)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]estimate()estimate (approximate) values for the model parameters from the data using a neighbor-joining treedouble[]estimateFromTree(ParameterizedTree t)estimate (approximate) values for the model parameters from the data using a given (parameterized) treedoubleevaluate(double[] params)compute function valuedoublegetLowerBound(int n)get lower bound of argument nintgetNumArguments()get number of argumentsOrthogonalHintsgetOrthogonalHints()doublegetUpperBound(int n)get upper bound of argument n
-
-
-
Field Detail
-
FRACDIGITS
public static final int FRACDIGITS
fractional digits desired for parameters- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ModelParameters
public ModelParameters(SitePattern sp, SubstitutionModel m)
Constructor- Parameters:
sp- site patternm- substitution model
-
-
Method Detail
-
estimate
public double[] estimate()
estimate (approximate) values for the model parameters from the data using a neighbor-joining tree- Returns:
- parameter estimates
-
estimateFromTree
public double[] estimateFromTree(ParameterizedTree t)
estimate (approximate) values for the model parameters from the data using a given (parameterized) tree- Returns:
- parameter estimates
-
evaluate
public double evaluate(double[] params)
Description copied from interface:MultivariateFunctioncompute function value- Specified by:
evaluatein interfaceMultivariateFunction- Parameters:
params- 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
public OrthogonalHints getOrthogonalHints()
- Specified by:
getOrthogonalHintsin interfaceMultivariateFunction- Returns:
- null
-
-