public class GeneralPoissonRateMatrix extends java.lang.Object implements NeoRateMatrix
| Constructor and Description |
|---|
GeneralPoissonRateMatrix(int dimension) |
| Modifier and Type | Method and Description |
|---|---|
void |
createRelativeRates(double[][] rateStore,
double[] rateParameters,
int startIndex)
Create the relative rates array
|
void |
getDefaultRateParameters(double[] store,
int startIndex) |
int |
getDimension() |
int |
getNumberOfRateParameters() |
double |
getRateParameterLowerBound(int parameter) |
double |
getRateParameterUpperBound(int parameter) |
java.lang.String |
getUniqueName() |
boolean |
isDataTypeCompatible(DataType dt)
Check the compatibility of a data type to be used with the rate matrix
|
boolean |
isReversible()
Is the relative rate matrix described by this rate matrix meant to represent a reversible process?
If true only the upper part of the rate matrix needs to be filled in (eg in matrix[i][j], for all where j > i );
|
public java.lang.String getUniqueName()
getUniqueName in interface NeoRateMatrixpublic boolean isReversible()
NeoRateMatrixisReversible in interface NeoRateMatrixpublic int getDimension()
getDimension in interface NeoRateMatrixpublic boolean isDataTypeCompatible(DataType dt)
isDataTypeCompatible in interface NeoRateMatrixdt - the data type to testpublic void createRelativeRates(double[][] rateStore,
double[] rateParameters,
int startIndex)
NeoRateMatrixcreateRelativeRates in interface NeoRateMatrixrateStore - The place where the relative rates are stored (should be assumed to be large enough - based on dimension)rateParameters - The parameters to be used to construct the rate storestartIndex - The index into the rateParameters to start reading parameterspublic int getNumberOfRateParameters()
getNumberOfRateParameters in interface NeoRateMatrixpublic double getRateParameterLowerBound(int parameter)
getRateParameterLowerBound in interface NeoRateMatrixpublic double getRateParameterUpperBound(int parameter)
getRateParameterUpperBound in interface NeoRateMatrixpublic void getDefaultRateParameters(double[] store,
int startIndex)
getDefaultRateParameters in interface NeoRateMatrix