|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.substmodel.ConstantIndependentSingleSplitDistribution
public class ConstantIndependentSingleSplitDistribution
Title: ConstantIndependentSingleSplitDistribution
Description: Allows for a split in substitution model parameters where the class distribution before the split is the same as after the split (and the probabilities of being in a before class and an after class are independent)
| Constructor Summary | |
|---|---|
ConstantIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories)
|
|
ConstantIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories,
double[] initialParameters)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories)
public ConstantIndependentSingleSplitDistribution(int numberOfBaseTransitionCategories,
double[] initialParameters)
| Method Detail |
|---|
public double[] getDistribution()
public int getNumberOfBaseTransitionCategories()
getNumberOfBaseTransitionCategories in interface SingleSplitDistributionpublic double[][] getDistributionInfo()
SingleSplitDistribution
getDistributionInfo in interface SingleSplitDistributionpublic int getNumberOfParameters()
NeoParameterized
getNumberOfParameters in interface NeoParameterized
public void setParameters(double[] store,
int startIndex)
NeoParameterized
setParameters in interface NeoParameterizedstore - the array holding the parametersstartIndex - the index into the array that the related parameters start at
public void getParameters(double[] store,
int startIndex)
NeoParameterized
getParameters in interface NeoParameterizedstartIndex - the index into the array that the related parameters start atpublic double getLowerLimit(int n)
NeoParameterized
getLowerLimit in interface NeoParameterizedn - parameter number
public double getUpperLimit(int n)
NeoParameterized
getUpperLimit in interface NeoParameterizedn - parameter number
public void getDefaultValues(double[] store,
int startIndex)
NeoParameterized
getDefaultValues in interface NeoParameterizedpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||