|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.evolution.substmodel.AbstractRateMatrix
public abstract class AbstractRateMatrix
abstract base class for all rate matrices
| Constructor Summary | |
|---|---|
protected |
AbstractRateMatrix(int dim)
|
| Method Summary | |
|---|---|
int |
getDimension()
|
double[] |
getEquilibriumFrequencies()
|
double |
getEquilibriumFrequency(int i)
|
protected double[] |
getFrequencies()
|
double[][] |
getRelativeRates()
|
SequenceType |
getSequenceType()
Get the data type of this rate matrix |
void |
getTransitionProbabilities(double[][] probabilityStore)
A utility method for speed, transfers trans prob information quickly into store |
double |
getTransitionProbability(int fromState,
int toState)
|
void |
rebuild()
|
protected abstract void |
rebuildRateMatrix(double[][] rate,
double[] parameters)
|
void |
scale(double scale)
|
void |
setDistance(double distance)
Sets the distance (such as time/branch length) used when calculating the probabilities. |
void |
setDistanceTranspose(double distance)
Sets the distance (such as time/branch length) used when calculating the probabilities. |
protected void |
setFrequencies(double[] f)
|
double |
setParametersNoScale(double[] parameters)
|
protected void |
setSequenceType(SequenceType dt)
|
protected void |
updateMatrixExp()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jebl.evolution.substmodel.RateMatrix |
|---|
getUniqueName |
| Constructor Detail |
|---|
protected AbstractRateMatrix(int dim)
| Method Detail |
|---|
public int getDimension()
getDimension in interface RateMatrixpublic double[] getEquilibriumFrequencies()
getEquilibriumFrequencies in interface RateMatrixpublic double getEquilibriumFrequency(int i)
getEquilibriumFrequency in interface RateMatrixpublic SequenceType getSequenceType()
RateMatrix
getSequenceType in interface RateMatrixprotected final void setSequenceType(SequenceType dt)
public double[][] getRelativeRates()
getRelativeRates in interface RateMatrix
public double getTransitionProbability(int fromState,
int toState)
getTransitionProbability in interface RateMatrixfromState - The state from which we are startingtoState - The resulting state
public final void rebuild()
public final void setDistance(double distance)
setDistance in interface RateMatrixpublic final void setDistanceTranspose(double distance)
public final void getTransitionProbabilities(double[][] probabilityStore)
getTransitionProbabilities in interface RateMatrixpublic void scale(double scale)
protected void setFrequencies(double[] f)
public double setParametersNoScale(double[] parameters)
protected abstract void rebuildRateMatrix(double[][] rate,
double[] parameters)
protected void updateMatrixExp()
protected final double[] getFrequencies()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||