Package pal.substmodel
Class SaturatedSingleSplitDistribution
java.lang.Object
pal.substmodel.SaturatedSingleSplitDistribution
- All Implemented Interfaces:
NeoParameterized,SingleSplitDistribution
Title: SaturatedSingleSplitDistribution
Description: A model
Copyright: Copyright (c) 2003
Company:
- Version:
- 1.0
- Author:
- not attributable
-
Constructor Summary
ConstructorsConstructorDescriptionSaturatedSingleSplitDistribution(int numberOfBaseTransitionCategories) SaturatedSingleSplitDistribution(int numberOfBaseTransitionCategories, double[] initialParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetDefaultValues(double[] store, int startIndex) get default value parameter valuesdouble[]double[][]Obtain the distribution information stored in the following format: [beforeclass][afterclass] For example, the probability of evolving in class 0 before the split, and class 1 after the split - [0][1]doublegetLowerLimit(int n) get lower parameter limitintintget number of parametersvoidgetParameters(double[] store, int startIndex) get model parameterdoublegetUpperLimit(int n) get upper parameter limitvoidsetParameters(double[] store, int startIndex) set model parametertoString()
-
Constructor Details
-
SaturatedSingleSplitDistribution
public SaturatedSingleSplitDistribution(int numberOfBaseTransitionCategories) -
SaturatedSingleSplitDistribution
public SaturatedSingleSplitDistribution(int numberOfBaseTransitionCategories, double[] initialParameters)
-
-
Method Details
-
getDistribution
public double[] getDistribution() -
getNumberOfBaseTransitionCategories
public int getNumberOfBaseTransitionCategories()- Specified by:
getNumberOfBaseTransitionCategoriesin interfaceSingleSplitDistribution
-
getDistributionInfo
public double[][] getDistributionInfo()Description copied from interface:SingleSplitDistributionObtain the distribution information stored in the following format: [beforeclass][afterclass] For example, the probability of evolving in class 0 before the split, and class 1 after the split - [0][1]- Specified by:
getDistributionInfoin interfaceSingleSplitDistribution- Returns:
- an appropriate matrix representing the probability of evolving in the different combinations of before and after classes
-
getNumberOfParameters
public int getNumberOfParameters()Description copied from interface:NeoParameterizedget number of parameters- Specified by:
getNumberOfParametersin interfaceNeoParameterized- Returns:
- number of parameters
-
setParameters
public void setParameters(double[] store, int startIndex) Description copied from interface:NeoParameterizedset model parameter- Specified by:
setParametersin interfaceNeoParameterized- Parameters:
store- the array holding the parametersstartIndex- the index into the array that the related parameters start at
-
getParameters
public void getParameters(double[] store, int startIndex) Description copied from interface:NeoParameterizedget model parameter- Specified by:
getParametersin interfaceNeoParameterizedstartIndex- the index into the array that the related parameters start at
-
getLowerLimit
public double getLowerLimit(int n) Description copied from interface:NeoParameterizedget lower parameter limit- Specified by:
getLowerLimitin interfaceNeoParameterized- Parameters:
n- parameter number- Returns:
- lower bound
-
getUpperLimit
public double getUpperLimit(int n) Description copied from interface:NeoParameterizedget upper parameter limit- Specified by:
getUpperLimitin interfaceNeoParameterized- Parameters:
n- parameter number- Returns:
- upper bound
-
getDefaultValues
public void getDefaultValues(double[] store, int startIndex) Description copied from interface:NeoParameterizedget default value parameter values- Specified by:
getDefaultValuesin interfaceNeoParameterized
-
toString
-