|
||||||||||
| 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.Expansion
public class Expansion
This class models exponential growth from an initial ancestral population size. (Parameters: N0=present-day population size; N1=ancestral population size; r=growth rate). This model is nested with the exponential-growth population size model (N1=0).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jebl.evolution.coalescent.DemographicFunction |
|---|
DemographicFunction.Utils |
| Constructor Summary | |
|---|---|
Expansion()
Construct demographic model with default settings |
|
Expansion(double N0,
double r,
double N1)
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 |
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 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 |
getN1()
|
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 |
setN1(double N1)
|
void |
setProportion(double p)
|
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Expansion()
public Expansion(double N0,
double r,
double N1)
| Method Detail |
|---|
public double getN1()
public void setN1(double N1)
public void setProportion(double p)
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
public double getIntegral(double start,
double finish)
ConstantPopulation
getIntegral in interface DemographicFunctiongetIntegral in class ConstantPopulationpublic int getArgumentCount()
DemographicFunction
getArgumentCount in interface DemographicFunctiongetArgumentCount in class ExponentialGrowthpublic 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 | |||||||||