|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.evolution.coalescent.ConstantPopulation
jebl.evolution.coalescent.ExponentialGrowth
jebl.evolution.coalescent.CataclysmicDemographic
public class CataclysmicDemographic
This class models an exponentially growing (or shrinking) population (Parameters: N0=present-day population size; r=growth rate). This model is nested with the constant-population size model (r=0).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jebl.evolution.coalescent.DemographicFunction |
|---|
DemographicFunction.Utils |
| Constructor Summary | |
|---|---|
CataclysmicDemographic()
Construct demographic model with default settings |
|
CataclysmicDemographic(double N0,
double r,
double d,
double t)
Construct demographic model with given settings |
|
| Method Summary | |
|---|---|
double |
getCataclysmTime()
|
double |
getDeclineRate()
returns the positive-valued decline rate |
double |
getDemographic(double t)
Gets the value of the demographic function N(t) at time t. |
double |
getIntensity(double t)
Returns value of demographic intensity function at time t (= integral 1/N(x) dx from 0 to t). |
double |
getInverseIntensity(double x)
Returns value of inverse demographic intensity function (returns time, needed for simulation of coalescent intervals). |
boolean |
hasIntegral()
returns whether an analytical expression for the integral is implemented |
void |
setCataclysmTime(double t)
|
void |
setDeclineRate(double d)
sets the decline rate. |
void |
setSpikeFactor(double f)
An alternative parameterization of this model. |
| Methods inherited from class jebl.evolution.coalescent.ExponentialGrowth |
|---|
getArgument, getArgumentCount, getArgumentName, getGrowthRate, getLowerBound, getUpperBound, setArgument, setDoublingTime, setGrowthRate |
| Methods inherited from class jebl.evolution.coalescent.ConstantPopulation |
|---|
getIntegral, getN0, setN0 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CataclysmicDemographic()
public CataclysmicDemographic(double N0,
double r,
double d,
double t)
| Method Detail |
|---|
public final double getDeclineRate()
public void setDeclineRate(double d)
public final double getCataclysmTime()
public final void setCataclysmTime(double t)
public final void setSpikeFactor(double f)
public double getDemographic(double t)
DemographicFunction
getDemographic in interface DemographicFunctiongetDemographic in class ExponentialGrowthpublic double getIntensity(double t)
DemographicFunction
getIntensity in interface DemographicFunctiongetIntensity in class ExponentialGrowthpublic double getInverseIntensity(double x)
DemographicFunction
getInverseIntensity in interface DemographicFunctiongetInverseIntensity in class ExponentialGrowthpublic boolean hasIntegral()
DemographicFunction
hasIntegral in interface DemographicFunctionhasIntegral in class ConstantPopulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||