Class IBSPop


class IBSPop extends IBSDPopulation
Individual based simulation implementation of the Lotka-Volterra model.
  • Constructor Details

    • IBSPop

      protected IBSPop(EvoLudo engine, Discrete module)
      Create a new custom implementation for IBS simulations.
      Parameters:
      engine - the pacemaker for running the model
      module - the reference to the module implementing the model
  • Method Details

    • updateMaxRate

      protected void updateMaxRate()
      Description copied from class: IBSDPopulation
      Computes the maximum ecological event rate for this species given the current set of rates. Needed both for rejection sampling of events and to weight species selection in multi-species simulations.
      Overrides:
      updateMaxRate in class IBSDPopulation
    • setInitialTraits

      public boolean setInitialTraits(double[] init)
      Description copied from class: IBSDPopulation
      Set the initial trait frequencies in the population. Switches the initialization type to IBSD.Init.Type.FREQUENCY.
      Overrides:
      setInitialTraits in class IBSDPopulation
      Parameters:
      init - the initial traits
      Returns:
      true if the initialization was successful