Interface Model.HasDE.DGroups

All Superinterfaces:
Features, Features.Groups, Features.Pairs, Model.HasDE, Model.HasDE.DPairs
All Known Implementing Classes:
CDL, CDLP, CDLPQ, EcoPGG, simCDL, simCDLP, simCDLPQ
Enclosing interface:
Model.HasDE

public static interface Model.HasDE.DGroups extends Model.HasDE.DPairs, Features.Groups
Interface for differential equation models with interactions in groups of arbitrary size.
Author:
Christoph Hauert
  • Method Details

    • avgScores

      default void avgScores(double[] state, double[] scores)
      Description copied from interface: Model.HasDE.DPairs
      Calculate the average payoff for the frequency of traits specified in the array state for pairwise interactions. The average payoffs for each of the nTraits traits must be stored and returned in the array scores.
      Specified by:
      avgScores in interface Model.HasDE.DPairs
      Parameters:
      state - the frequency/density of each trait
      scores - the array for storing the average payoffs/scores of each trait
    • avgScores

      void avgScores(double[] state, int n, double[] scores)
      Calculate the average payoff for the frequency of traits specified in the array state for interactions in groups of size n. The average payoffs for each of the nTraits traits must be stored and returned in the array scores.
      Parameters:
      state - the frequency/density of each trait
      n - the size of interaction groups
      scores - the array for storing the average payoffs/scores of each trait