DemographicFunction
CataclysmicDemographic
, ConstExponential
, Expansion
, LogisticGrowth
public class ExponentialGrowth extends ConstantPopulation
DemographicFunction.Utils
Constructor | Description |
---|---|
ExponentialGrowth() |
Construct demographic model with default settings
|
ExponentialGrowth(double N0,
double r) |
Construct demographic model with given settings
|
Modifier and Type | Method | 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, setN0
public 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)
DemographicFunction
getDemographic
in interface DemographicFunction
getDemographic
in class ConstantPopulation
public double getIntensity(double t)
DemographicFunction
getIntensity
in interface DemographicFunction
getIntensity
in class ConstantPopulation
public double getInverseIntensity(double x)
DemographicFunction
getInverseIntensity
in interface DemographicFunction
getInverseIntensity
in class ConstantPopulation
public int getArgumentCount()
DemographicFunction
getArgumentCount
in interface DemographicFunction
getArgumentCount
in class ConstantPopulation
public java.lang.String getArgumentName(int n)
DemographicFunction
getArgumentName
in interface DemographicFunction
getArgumentName
in class ConstantPopulation
public double getArgument(int n)
DemographicFunction
getArgument
in interface DemographicFunction
getArgument
in class ConstantPopulation
public void setArgument(int n, double value)
DemographicFunction
setArgument
in interface DemographicFunction
setArgument
in class ConstantPopulation
public double getLowerBound(int n)
DemographicFunction
getLowerBound
in interface DemographicFunction
getLowerBound
in class ConstantPopulation
public double getUpperBound(int n)
DemographicFunction
getUpperBound
in interface DemographicFunction
getUpperBound
in class ConstantPopulation
http://code.google.com/p/jebl2/