Interface IBS.HasIBS.MCGroups

All Superinterfaces:
Features, Features.Groups, Features.Pairs, IBS.HasIBS, IBS.HasIBS.CGroups, IBS.HasIBS.CPairs
Enclosing interface:
IBS.HasIBS

public static interface IBS.HasIBS.MCGroups extends IBS.HasIBS.CGroups
Modules that offer individual based simulation models with continuous traits and interactions in groups must implement this interface.
  • Method Details

    • groupScores

      double groupScores(double[] me, double[] group, int len, double[] payoffs)
      Calculate the payoff/score for modules with interactions in groups and multiple single continuous traits. The focal individual has traits me and the traits of its len interaction partners are given in group. The traits they are arranged in the usual manner, i.e. first all traits of the first group member then all traits by the second group member etc. for a total of len*nTraits entries. The payoffs/scores for each of the len participants must be stored and returned in the array payoffs.

      Note:

      Only the first len*nTraits entries in group are guaranteed to exist and have meaningful values. The population structure may restrict the size of the interaction group. len≤nGroup always holds.

      Important:

      must be overridden and implemented in subclasses that define game interactions among groups of individuals with multiple continuous traits (for groups with sizes nGroup>2, otherwise see IBS.HasIBS.CPairs.pairScores(double, double[], int, double[])).
      Parameters:
      me - the traits of the focal individual
      group - the traits of the group members
      len - the number of memebrs in the group
      payoffs - the array for returning the payoffs/scores for each group member
      Returns:
      the payoff/score for the focal individual