|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpal.mep.MutationRateModel
This abstract class contains methods that are of general use for modelling mutation rate changes over time.
Nested Class Summary | |
static interface |
MutationRateModel.Factory
An interface for objects which generate fresh MutationRAteModels |
Nested classes inherited from class pal.misc.Parameterized |
Parameterized.Null, Parameterized.ParameterizedBase, Parameterized.ParameterizedUser, Parameterized.Utils |
Field Summary | |
protected FormattedOutput |
fo
|
Fields inherited from interface pal.misc.Units |
DAYS, EXPECTED_SUBSTITUTIONS, GENERATIONS, MONTHS, SAMPLE, SHORT_UNIT_NAMES, UNIT_NAMES, UNKNOWN, YEARS |
Constructor Summary | |
protected |
MutationRateModel(int units,
double maximumMutationRate)
|
protected |
MutationRateModel(MutationRateModel toCopy)
|
Method Summary | |
abstract java.lang.Object |
clone()
|
abstract MutationRateModel.Factory |
generateFactory()
|
abstract MutationRateModel |
getCopy()
|
abstract double |
getEndTime(double expectedSubs,
double startTime)
Return the end time at which expected substitutions has occurred, given we start at start time |
abstract double |
getExpectedSubstitutions(double t)
Returns integral of mutation rate function (= integral mu(x) dx from 0 to t). |
double |
getExpectedSubstitutions(double start,
double finish)
Calculates the integral 1/mu(x) dx between start and finish. |
protected double |
getMaximumMutationRate()
|
abstract double |
getMutationRate(double t)
Gets the mutation rate, value of mu(t) at time t. |
OrthogonalHints |
getOrthogonalHints()
Overide if there is any orthogonal hint information available |
double |
getTime(double expectedSubs)
Return the time at which expected substitutions has occurred. |
int |
getUnits()
returns units of measurement. |
abstract void |
scale(double scale)
Linearly scales this mutation rate model. |
TimeOrderCharacterData |
scale(TimeOrderCharacterData toScale)
|
void |
setUnits(int u,
double maximumMutationRate)
sets units of measurement. |
abstract java.lang.String |
toSingleLine()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pal.misc.Parameterized |
getDefaultValue, getLowerLimit, getNumParameters, getParameter, getUpperLimit, setParameter, setParameterSE |
Methods inherited from interface pal.misc.Report |
report |
Methods inherited from interface pal.misc.Summarizable |
getSummaryTypes, getSummaryValue |
Field Detail |
protected FormattedOutput fo
Constructor Detail |
protected MutationRateModel(int units, double maximumMutationRate)
protected MutationRateModel(MutationRateModel toCopy)
Method Detail |
public abstract java.lang.Object clone()
public abstract MutationRateModel getCopy()
public abstract double getMutationRate(double t)
public abstract double getExpectedSubstitutions(double t)
public double getTime(double expectedSubs)
public abstract double getEndTime(double expectedSubs, double startTime)
public abstract void scale(double scale)
scale
- getExpectedSubstitutions should return scale instead of 1.0 at time t.public double getExpectedSubstitutions(double start, double finish)
public TimeOrderCharacterData scale(TimeOrderCharacterData toScale)
java.lang.IllegalArgumentException
- if units of this Model doenot match
the units of the TimeOrderCharacterData object (toScale).public final void setUnits(int u, double maximumMutationRate)
u
- units
java.lang.IllegalArgumentException
- if units are ExpectedSubstitutionsprotected final double getMaximumMutationRate()
public int getUnits()
public OrthogonalHints getOrthogonalHints()
public abstract java.lang.String toSingleLine()
public abstract MutationRateModel.Factory generateFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |