public class ConstantPopulation extends java.lang.Object implements DemographicFunction
DemographicFunction.Utils| Constructor and Description |
|---|
ConstantPopulation()
Construct demographic model with default settings
|
ConstantPopulation(double N0)
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 |
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 |
getN0()
returns initial population size.
|
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 |
setN0(double N0)
sets initial population size.
|
public ConstantPopulation()
public ConstantPopulation(double N0)
public double getN0()
public void setN0(double N0)
public double getDemographic(double t)
DemographicFunctiongetDemographic in interface DemographicFunctionpublic double getIntensity(double t)
DemographicFunctiongetIntensity in interface DemographicFunctionpublic double getInverseIntensity(double x)
DemographicFunctiongetInverseIntensity in interface DemographicFunctionpublic boolean hasIntegral()
DemographicFunctionhasIntegral in interface DemographicFunctionpublic double getIntegral(double start,
double finish)
getIntegral in interface DemographicFunctionpublic int getArgumentCount()
DemographicFunctiongetArgumentCount in interface DemographicFunctionpublic java.lang.String getArgumentName(int n)
DemographicFunctiongetArgumentName in interface DemographicFunctionpublic double getArgument(int n)
DemographicFunctiongetArgument in interface DemographicFunctionpublic void setArgument(int n,
double value)
DemographicFunctionsetArgument in interface DemographicFunctionpublic double getLowerBound(int n)
DemographicFunctiongetLowerBound in interface DemographicFunctionpublic double getUpperBound(int n)
DemographicFunctiongetUpperBound in interface DemographicFunctionhttp://code.google.com/p/jebl2/