Class SIR.IBSPop

Enclosing class:
SIR

public class SIR.IBSPop extends IBSDPopulation
Population for individual based simulations of the SIR module.
  • Constructor Details

    • IBSPop

      protected IBSPop()
      Constructor for SIR population.
  • Method Details

    • updatePlayerAt

      public boolean updatePlayerAt(int me, int[] refGroup, int rGroupSize)
      Description copied from class: IBSPopulation
      Perform a single update of the individual with index me using the rGroupSize models in the array refGroup. Returns true if the individual changed its trait to signal that the focal individual's score will need to be reset.
      Overrides:
      updatePlayerAt in class IBSPopulation
      Parameters:
      me - the index of the focal individual
      refGroup - the group of reference individuals
      rGroupSize - the number of reference individuals
      Returns:
      true if trait of reference adopted
      See Also:
    • checkConvergence

      public boolean checkConvergence()
      Description copied from class: IBSPopulation
      Check if population has converged. By default true if population is monomorphic and no (zero) mutations. However, different implementations may have different criteria for convergence.

      Note: This tends to be less restrictive than reaching an absorbing state. Typically convergence is used as a criterion to abort simulations.

      Overrides:
      checkConvergence in class IBSDPopulation
      Returns:
      true if converged.