Class CataclysmicDemographic

  • All Implemented Interfaces:
    DemographicFunction

    public class CataclysmicDemographic
    extends ExponentialGrowth
    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: CataclysmicDemographic.java 586 2006-12-15 15:49:15Z twobeers $
    Author:
    Alexei Drummond, Andrew Rambaut
    • Constructor Detail

      • CataclysmicDemographic

        public CataclysmicDemographic()
        Construct demographic model with default settings
      • CataclysmicDemographic

        public CataclysmicDemographic​(double N0,
                                      double r,
                                      double d,
                                      double t)
        Construct demographic model with given settings
        Parameters:
        N0 - present-day population size
        r - growth rate
    • Method Detail

      • getDeclineRate

        public final double getDeclineRate()
        returns the positive-valued decline rate
      • setDeclineRate

        public void setDeclineRate​(double d)
        sets the decline rate.
      • getCataclysmTime

        public final double getCataclysmTime()
      • setCataclysmTime

        public final void setCataclysmTime​(double t)
      • setSpikeFactor

        public final void setSpikeFactor​(double f)
        An alternative parameterization of this model. This function sets the decline rate using N0 & t which must already have been set.