public class ExponentialGrowth extends ConstantPopulation
DemographicFunction.Utils| Constructor and Description |
|---|
ExponentialGrowth()
Construct demographic model with default settings
|
ExponentialGrowth(double N0,
double r)
Construct demographic model with given settings
|
| Modifier and Type | Method and Description |
|---|---|
double |
getArgument(int n)
Returns the value of the nth argument of this function.
|
int |
getArgumentCount()
Returns the number of arguments for this function.
|
java.lang.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.
|
getIntegral, getN0, hasIntegral, setN0public ExponentialGrowth()
public ExponentialGrowth(double N0,
double r)
public final double getGrowthRate()
public void setGrowthRate(double r)
public void setDoublingTime(double doublingTime)
public double getDemographic(double t)
DemographicFunctiongetDemographic in interface DemographicFunctiongetDemographic in class ConstantPopulationpublic double getIntensity(double t)
DemographicFunctiongetIntensity in interface DemographicFunctiongetIntensity in class ConstantPopulationpublic double getInverseIntensity(double x)
DemographicFunctiongetInverseIntensity in interface DemographicFunctiongetInverseIntensity in class ConstantPopulationpublic int getArgumentCount()
DemographicFunctiongetArgumentCount in interface DemographicFunctiongetArgumentCount in class ConstantPopulationpublic java.lang.String getArgumentName(int n)
DemographicFunctiongetArgumentName in interface DemographicFunctiongetArgumentName in class ConstantPopulationpublic double getArgument(int n)
DemographicFunctiongetArgument in interface DemographicFunctiongetArgument in class ConstantPopulationpublic void setArgument(int n,
double value)
DemographicFunctionsetArgument in interface DemographicFunctionsetArgument in class ConstantPopulationpublic double getLowerBound(int n)
DemographicFunctiongetLowerBound in interface DemographicFunctiongetLowerBound in class ConstantPopulationpublic double getUpperBound(int n)
DemographicFunctiongetUpperBound in interface DemographicFunctiongetUpperBound in class ConstantPopulationhttp://code.google.com/p/jebl2/