|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.substmodel.CachedRateMatrix
public abstract class CachedRateMatrix
a cached rate matrix.
This model caches transition probabilities by distance in order
to increase speed of likelihood calculations for repeated calls with same/similar
branch lengths.
AS OF 11 November 2003 this class has been made abstract and will be removed at a later point (as it never really helped much)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.misc.Parameterized |
|---|
Parameterized.Null, Parameterized.ParameterizedBase, Parameterized.ParameterizedUser, Parameterized.Utils |
| Nested classes/interfaces inherited from interface pal.misc.PalObjectListener |
|---|
PalObjectListener.EventGenerator |
| Constructor Summary | |
|---|---|
CachedRateMatrix(CachedRateMatrix cachedRateMatrix)
|
|
CachedRateMatrix(RateMatrix rateMatrix,
DoubleKeyCache cache)
|
|
CachedRateMatrix(RateMatrix rateMatrix,
int maxCacheSize)
|
|
| Method Summary | |
|---|---|
void |
addPalObjectListener(PalObjectListener pol)
Add a PalObjectListener to be notified of changes to the model. |
java.lang.Object |
clone()
A non shallow implementation of clone() |
DataType |
getDataType()
Get the data type of this rate matrix |
double |
getDefaultValue(int n)
get default value of parameter |
int |
getDimension()
|
double[] |
getEquilibriumFrequencies()
|
double |
getEquilibriumFrequency(int i)
|
double |
getLowerLimit(int n)
get lower parameter limit |
int |
getModelID()
get numerical code describing the model type |
int |
getNumParameters()
get number of parameters |
OrthogonalHints |
getOrthogonalHints()
|
double |
getParameter(int n)
get model parameter |
java.lang.String |
getParameterName(int i)
|
double[][] |
getRelativeRates()
|
void |
getTransitionProbabilities(double[][] probs)
A utility method for speed, transfers trans prob information quickly into store |
double |
getTransitionProbability(int i,
int j)
get transition probability for the preselected model and the previously specified distance |
int |
getTypeID()
get numerical code describing the data type |
java.lang.String |
getUniqueName()
|
double |
getUpperLimit(int n)
get upper parameter limit |
void |
parametersChanged(PalObjectEvent pe)
Signifies that parametric valued governing the state of this Object have changed. |
void |
removePalObjectListener(PalObjectListener pol)
|
void |
report(java.io.PrintWriter out)
print human readable report (e.g., on parameters and associated model) |
void |
setDistance(double k)
set distance and corresponding computation transition probabilities |
void |
setDistanceTranspose(double k)
Sets the distance (such as time/branch length) used when calculating the probabilities. |
void |
setParameter(double param,
int n)
set model parameter |
void |
setParameterSE(double paramSE,
int n)
set standard errors for model parameter |
void |
structureChanged(PalObjectEvent pe)
Signifies that the structure of the object has changed (for example in trees to topology has changed) |
java.lang.String |
toString()
Return string representation of substitution model. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pal.substmodel.RateMatrix |
|---|
scale, setParametersNoScale |
| Constructor Detail |
|---|
public CachedRateMatrix(RateMatrix rateMatrix,
DoubleKeyCache cache)
model - the underlying substitution modelcache - the caching method used
public CachedRateMatrix(RateMatrix rateMatrix,
int maxCacheSize)
model - the underlying substitution modelpublic CachedRateMatrix(CachedRateMatrix cachedRateMatrix)
model - the previous cached model.| Method Detail |
|---|
public final void report(java.io.PrintWriter out)
Report
report in interface Reportout - output streampublic final int getTypeID()
RateMatrix
getTypeID in interface RateMatrixpublic final int getModelID()
RateMatrix
getModelID in interface RateMatrixpublic final int getDimension()
getDimension in interface RateMatrixpublic final double[] getEquilibriumFrequencies()
getEquilibriumFrequencies in interface RateMatrixpublic final double getEquilibriumFrequency(int i)
getEquilibriumFrequency in interface RateMatrixpublic final double[][] getRelativeRates()
getRelativeRates in interface RateMatrixpublic java.lang.String toString()
toString in class java.lang.Objectpublic final int getNumParameters()
Parameterized
getNumParameters in interface Parameterized
public final void setParameter(double param,
int n)
Parameterized
setParameter in interface Parameterizedparam - parameter valuen - parameter numberpublic final double getParameter(int n)
Parameterized
getParameter in interface Parameterizedn - parameter number
public final void setParameterSE(double paramSE,
int n)
Parameterized
setParameterSE in interface ParameterizedparamSE - standard error of parameter valuen - parameter numberpublic final double getLowerLimit(int n)
Parameterized
getLowerLimit in interface Parameterizedn - parameter number
public final double getUpperLimit(int n)
Parameterized
getUpperLimit in interface Parameterizedn - parameter number
public final double getDefaultValue(int n)
Parameterized
getDefaultValue in interface Parameterizedn - parameter number
public final java.lang.String getParameterName(int i)
getParameterName in interface NamedParameterizedpublic final void setDistance(double k)
setDistance in interface RateMatrixk - distancepublic final void setDistanceTranspose(double k)
RateMatrix
setDistanceTranspose in interface RateMatrix
public final double getTransitionProbability(int i,
int j)
getTransitionProbability in interface RateMatrixi - start statej - end state
public final void getTransitionProbabilities(double[][] probs)
RateMatrix
getTransitionProbabilities in interface RateMatrixpublic final java.lang.Object clone()
clone in interface RateMatrixclone in class java.lang.Objectpublic final DataType getDataType()
RateMatrix
getDataType in interface RateMatrixpublic final java.lang.String getUniqueName()
getUniqueName in interface RateMatrixpublic void structureChanged(PalObjectEvent pe)
PalObjectListener
structureChanged in interface PalObjectListenerpublic void parametersChanged(PalObjectEvent pe)
PalObjectListener
parametersChanged in interface PalObjectListenerpublic void addPalObjectListener(PalObjectListener pol)
RateMatrix
addPalObjectListener in interface RateMatrixpublic void removePalObjectListener(PalObjectListener pol)
removePalObjectListener in interface RateMatrixpublic OrthogonalHints getOrthogonalHints()
getOrthogonalHints in interface RateMatrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||