Package pal.substmodel
Class RateMatrixHandler
java.lang.Object
pal.substmodel.RateMatrixHandler
- All Implemented Interfaces:
Serializable,Parameterized
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface pal.misc.Parameterized
Parameterized.Null, Parameterized.ParameterizedBase, Parameterized.ParameterizedUser, Parameterized.Utils -
Constructor Summary
ConstructorsConstructorDescriptionRateMatrixHandler(NeoRateMatrix rateMatrix, double[] equilibriumFrequencies) -
Method Summary
Modifier and TypeMethodDescriptionfinal RateMatrixHandlergetCopy()doublegetDefaultValue(int n) get default value of parameterfinal double[]doublegetLowerLimit(int n) get lower parameter limitintget number of parametersdoublegetParameter(int n) get model parametervoidgetTransitionProbabilities(double distance, double[][] store) voidgetTransitionProbabilitiesTranspose(double distance, double[][] store) doublegetUpperLimit(int n) get upper parameter limitvoidreport(PrintWriter out) Reporting stuffvoidsetParameter(double param, int n) set model parametervoidsetParameterSE(double paramSE, int n) set standard errors for model parameter
-
Constructor Details
-
RateMatrixHandler
-
-
Method Details
-
getCopy
-
getEquilibriumFrequencies
public final double[] getEquilibriumFrequencies() -
getTransitionProbabilities
public void getTransitionProbabilities(double distance, double[][] store) -
getTransitionProbabilitiesTranspose
public void getTransitionProbabilitiesTranspose(double distance, double[][] store) -
report
Reporting stuff- Parameters:
out- where to report too
-
getNumParameters
public int getNumParameters()Description copied from interface:Parameterizedget number of parameters- Specified by:
getNumParametersin interfaceParameterized- Returns:
- number of parameters
-
setParameter
public void setParameter(double param, int n) Description copied from interface:Parameterizedset model parameter- Specified by:
setParameterin interfaceParameterized- Parameters:
param- parameter valuen- parameter number
-
getParameter
public double getParameter(int n) Description copied from interface:Parameterizedget model parameter- Specified by:
getParameterin interfaceParameterized- Parameters:
n- parameter number- Returns:
- parameter value
-
setParameterSE
public void setParameterSE(double paramSE, int n) Description copied from interface:Parameterizedset standard errors for model parameter- Specified by:
setParameterSEin interfaceParameterized- Parameters:
paramSE- standard error of parameter valuen- parameter number
-
getLowerLimit
public double getLowerLimit(int n) Description copied from interface:Parameterizedget lower parameter limit- Specified by:
getLowerLimitin interfaceParameterized- Parameters:
n- parameter number- Returns:
- lower bound
-
getUpperLimit
public double getUpperLimit(int n) Description copied from interface:Parameterizedget upper parameter limit- Specified by:
getUpperLimitin interfaceParameterized- Parameters:
n- parameter number- Returns:
- upper bound
-
getDefaultValue
public double getDefaultValue(int n) Description copied from interface:Parameterizedget default value of parameter- Specified by:
getDefaultValuein interfaceParameterized- Parameters:
n- parameter number- Returns:
- default value
-