|
||||||||||
| 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
public class ExponentialGrowth
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 | |
|---|---|
ExponentialGrowth()
Construct demographic model with default settings |
|
ExponentialGrowth(double N0,
double r)
Construct demographic model with given settings |
|
| Method Summary | |
|---|---|
double |
getArgument(int n)
Returns the value of the nth argument of this function. |
int |
getArgumentCount()
Returns the number of arguments for this function. |
String |
getArgumentName(int n)
Returns the name of the nth argument of this function. |
double |
getDemographic(double t)
Gets the value of the demographic function N(t) at time t. |
double |
getGrowthRate()
returns growth rate. |
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). |
double |
getLowerBound(int n)
Returns the lower bound of the nth argument of this function. |
double |
getUpperBound(int n)
Returns the upper bound of the nth argument of this function. |
void |
setArgument(int n,
double value)
Sets the value of the nth argument of this function. |
void |
setDoublingTime(double doublingTime)
An alternative parameterization of this model. |
void |
setGrowthRate(double r)
sets growth rate. |
| Methods inherited from class jebl.evolution.coalescent.ConstantPopulation |
|---|
getIntegral, getN0, hasIntegral, setN0 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExponentialGrowth()
public ExponentialGrowth(double N0,
double r)
| Method Detail |
|---|
public final double getGrowthRate()
public void setGrowthRate(double r)
public void setDoublingTime(double doublingTime)
public double getDemographic(double t)
DemographicFunction
getDemographic in interface DemographicFunctiongetDemographic in class ConstantPopulationpublic double getIntensity(double t)
DemographicFunction
getIntensity in interface DemographicFunctiongetIntensity in class ConstantPopulationpublic double getInverseIntensity(double x)
DemographicFunction
getInverseIntensity in interface DemographicFunctiongetInverseIntensity in class ConstantPopulationpublic int getArgumentCount()
DemographicFunction
getArgumentCount in interface DemographicFunctiongetArgumentCount in class ConstantPopulationpublic String getArgumentName(int n)
DemographicFunction
getArgumentName in interface DemographicFunctiongetArgumentName in class ConstantPopulationpublic double getArgument(int n)
DemographicFunction
getArgument in interface DemographicFunctiongetArgument in class ConstantPopulation
public void setArgument(int n,
double value)
DemographicFunction
setArgument in interface DemographicFunctionsetArgument in class ConstantPopulationpublic double getLowerBound(int n)
DemographicFunction
getLowerBound in interface DemographicFunctiongetLowerBound in class ConstantPopulationpublic double getUpperBound(int n)
DemographicFunction
getUpperBound in interface DemographicFunctiongetUpperBound in class ConstantPopulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||