|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.coalescent.DemographicModel
pal.coalescent.ConstantPopulation
pal.coalescent.ExponentialGrowth
pal.coalescent.ExpandingPopulation
public class ExpandingPopulation
This class models a population that grows exponentially from an inital population size alpha N0 to a present-day size N0. (Parameters: N0=present-day population size; r=growth rate; alpha: ratio of population sizes). This model is nested with the exponential-growth model (alpha -> 0).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.misc.Parameterized |
|---|
Parameterized.Null, Parameterized.ParameterizedBase, Parameterized.ParameterizedUser, Parameterized.Utils |
| Field Summary | |
|---|---|
double |
alpha
ratio of pop. |
double |
alphaSE
standard error of time alpha |
| Fields inherited from class pal.coalescent.ExponentialGrowth |
|---|
r, rSE |
| Fields inherited from class pal.coalescent.ConstantPopulation |
|---|
N0, N0SE |
| Fields inherited from class pal.coalescent.DemographicModel |
|---|
fo |
| Fields inherited from interface pal.misc.Units |
|---|
DAYS, EXPECTED_SUBSTITUTIONS, GENERATIONS, MONTHS, SAMPLE, SHORT_UNIT_NAMES, UNIT_NAMES, UNKNOWN, YEARS |
| Constructor Summary | |
|---|---|
ExpandingPopulation(double size,
double growth,
double ratio,
int units)
Construct demographic model of an expanding population |
|
ExpandingPopulation(int units)
Construct demographic model with default settings |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
double |
getDefaultValue(int k)
get default value of parameter |
double |
getDemographic(double t)
Gets the value of the demographic function N(t) at time t. |
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 |
getLowerLimit(int k)
get lower parameter limit |
int |
getNumParameters()
get number of parameters |
double |
getParameter(int k)
get model parameter |
double |
getRatio()
returns ratio of population sizes |
double |
getUpperLimit(int k)
get upper parameter limit |
void |
report(java.io.PrintWriter out)
print human readable report (e.g., on parameters and associated model) |
void |
setParameter(double value,
int k)
set model parameter |
void |
setParameterSE(double value,
int k)
set standard errors for model parameter |
java.lang.String |
toString()
|
| Methods inherited from class pal.coalescent.ExponentialGrowth |
|---|
getGrowthRate, getSummaryTypes, getSummaryValue |
| Methods inherited from class pal.coalescent.ConstantPopulation |
|---|
getN0 |
| Methods inherited from class pal.coalescent.DemographicModel |
|---|
computeLogLikelihood, computeLogLikelihood, getIntegral, getLogL, getSimulatedInterval, getUnits, setLogL, setUnits, testConsistency |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double alpha
public double alphaSE
| Constructor Detail |
|---|
public ExpandingPopulation(int units)
public ExpandingPopulation(double size,
double growth,
double ratio,
int units)
| Method Detail |
|---|
public java.lang.Object clone()
clone in class ExponentialGrowthpublic double getRatio()
public double getDemographic(double t)
DemographicModel
getDemographic in class ExponentialGrowthpublic double getIntensity(double t)
DemographicModel
getIntensity in class ExponentialGrowthpublic double getInverseIntensity(double x)
DemographicModel
getInverseIntensity in class ExponentialGrowthpublic int getNumParameters()
Parameterized
getNumParameters in interface ParameterizedgetNumParameters in class ExponentialGrowthpublic double getParameter(int k)
Parameterized
getParameter in interface ParameterizedgetParameter in class ExponentialGrowthk - parameter number
public double getUpperLimit(int k)
Parameterized
getUpperLimit in interface ParameterizedgetUpperLimit in class ExponentialGrowthk - parameter number
public double getLowerLimit(int k)
Parameterized
getLowerLimit in interface ParameterizedgetLowerLimit in class ExponentialGrowthk - parameter number
public double getDefaultValue(int k)
Parameterized
getDefaultValue in interface ParameterizedgetDefaultValue in class ExponentialGrowthk - parameter number
public void setParameter(double value,
int k)
Parameterized
setParameter in interface ParameterizedsetParameter in class ExponentialGrowthvalue - parameter valuek - parameter number
public void setParameterSE(double value,
int k)
Parameterized
setParameterSE in interface ParameterizedsetParameterSE in class ExponentialGrowthvalue - standard error of parameter valuek - parameter numberpublic java.lang.String toString()
toString in class ExponentialGrowthpublic void report(java.io.PrintWriter out)
Report
report in interface Reportreport in class ExponentialGrowthout - output stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||