Class ExponentialGrowth

  • All Implemented Interfaces:
    DemographicFunction
    Direct Known Subclasses:
    CataclysmicDemographic, ConstExponential, Expansion, LogisticGrowth

    public class ExponentialGrowth
    extends ConstantPopulation
    This class models an exponentially growing (or shrinking) population (Parameters: N0=present-day population size; r=growth rate). This model is nested with the constant-population size model (r=0).
    Version:
    $Id: ExponentialGrowth.java 390 2006-07-20 14:33:51Z rambaut $
    Author:
    Alexei Drummond, Andrew Rambaut
    • Constructor Summary

      Constructors 
      Constructor Description
      ExponentialGrowth()
      Construct demographic model with default settings
      ExponentialGrowth​(double N0, double r)
      Construct demographic model with given settings
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait