|
||||||||||
| 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.LogisticGrowth
jebl.evolution.coalescent.ExponentialLogistic
public class ExponentialLogistic
This class models logistic growth from an initial exponential phase.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jebl.evolution.coalescent.DemographicFunction |
|---|
DemographicFunction.Utils |
| Constructor Summary | |
|---|---|
ExponentialLogistic()
Construct demographic model with default settings |
|
ExponentialLogistic(double N0,
double r,
double c,
double time,
double r2)
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. |
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 |
getIntegral(double start,
double finish)
Calculates the integral 1/N(x) dx between start and finish. |
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 demographic intensity function at time t (= integral 1/N(x) dx from 0 to t). |
double |
getLowerBound(int n)
Returns the lower bound of the nth argument of this function. |
double |
getR2()
|
double |
getTime()
|
double |
getUpperBound(int n)
Returns the upper bound of the nth argument of this function. |
boolean |
hasIntegral()
returns whether an analytical expression for the integral is implemented |
void |
setArgument(int n,
double value)
Sets the value of the nth argument of this function. |
void |
setR2(double r2)
|
void |
setTime(double time)
|
| Methods inherited from class jebl.evolution.coalescent.LogisticGrowth |
|---|
getShape, setShape, setTime50 |
| Methods inherited from class jebl.evolution.coalescent.ExponentialGrowth |
|---|
getGrowthRate, setDoublingTime, setGrowthRate |
| Methods inherited from class jebl.evolution.coalescent.ConstantPopulation |
|---|
getN0, setN0 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExponentialLogistic()
public ExponentialLogistic(double N0,
double r,
double c,
double time,
double r2)
N0 - Current population sizer - Logistic-phase growth ratec - Logistic shapetime - Exponential-logistic phase transition timer2 - Exponential-phase growth rate| Method Detail |
|---|
public double getR2()
public void setR2(double r2)
public double getTime()
public void setTime(double time)
public double getDemographic(double t)
LogisticGrowth
getDemographic in interface DemographicFunctiongetDemographic in class LogisticGrowtht - the time
public double getIntensity(double t)
LogisticGrowth
getIntensity in interface DemographicFunctiongetIntensity in class LogisticGrowthpublic double getInverseIntensity(double x)
LogisticGrowth
getInverseIntensity in interface DemographicFunctiongetInverseIntensity in class LogisticGrowthpublic boolean hasIntegral()
DemographicFunction
hasIntegral in interface DemographicFunctionhasIntegral in class LogisticGrowth
public double getIntegral(double start,
double finish)
ConstantPopulation
getIntegral in interface DemographicFunctiongetIntegral in class LogisticGrowthpublic int getArgumentCount()
DemographicFunction
getArgumentCount in interface DemographicFunctiongetArgumentCount in class ExponentialGrowthpublic java.lang.String getArgumentName(int n)
DemographicFunction
getArgumentName in interface DemographicFunctiongetArgumentName in class ExponentialGrowthpublic double getArgument(int n)
DemographicFunction
getArgument in interface DemographicFunctiongetArgument in class ExponentialGrowth
public void setArgument(int n,
double value)
DemographicFunction
setArgument in interface DemographicFunctionsetArgument in class ExponentialGrowthpublic double getLowerBound(int n)
DemographicFunction
getLowerBound in interface DemographicFunctiongetLowerBound in class ExponentialGrowthpublic double getUpperBound(int n)
DemographicFunction
getUpperBound in interface DemographicFunctiongetUpperBound in class ExponentialGrowth
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||