NeoParameterized, SingleSplitDistributionpublic class VariableIndependentSingleSplitDistribution extends java.lang.Object implements SingleSplitDistribution
Title: VariableIndependentSingleSplitDistribution
Description: Allows for a split in substitution model parameters where the class distribution before the split maybe different after the split (and the probabilities of being in a before class and an after class are independent)
| Constructor | Description |
|---|---|
VariableIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories) |
|
VariableIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories,
double[] initialParameters) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
getDefaultValues(double[] store,
int startIndex) |
get default value parameter values
|
double[] |
getDistribution() |
|
double[][] |
getDistributionInfo() |
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]
|
double |
getLowerLimit(int n) |
get lower parameter limit
|
int |
getNumberOfBaseTransitionCategories() |
|
int |
getNumberOfParameters() |
get number of parameters
|
void |
getParameters(double[] store,
int startIndex) |
get model parameter
|
double |
getUpperLimit(int n) |
get upper parameter limit
|
void |
setParameters(double[] store,
int startIndex) |
set model parameter
|
java.lang.String |
toString() |
public VariableIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories)
public VariableIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories,
double[] initialParameters)
public double[] getDistribution()
public int getNumberOfBaseTransitionCategories()
getNumberOfBaseTransitionCategories in interface SingleSplitDistributionpublic double[][] getDistributionInfo()
SingleSplitDistributiongetDistributionInfo in interface SingleSplitDistributionpublic int getNumberOfParameters()
NeoParameterizedgetNumberOfParameters in interface NeoParameterizedpublic void setParameters(double[] store,
int startIndex)
NeoParameterizedsetParameters in interface NeoParameterizedstore - the array holding the parametersstartIndex - the index into the array that the related parameters start atpublic void getParameters(double[] store,
int startIndex)
NeoParameterizedgetParameters in interface NeoParameterizedstartIndex - the index into the array that the related parameters start atpublic double getLowerLimit(int n)
NeoParameterizedgetLowerLimit in interface NeoParameterizedn - parameter numberpublic double getUpperLimit(int n)
NeoParameterizedgetUpperLimit in interface NeoParameterizedn - parameter numberpublic void getDefaultValues(double[] store,
int startIndex)
NeoParameterizedgetDefaultValues in interface NeoParameterizedpublic java.lang.String toString()
toString in class java.lang.Object