Interface Model.HasDE.DGroups

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

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

    • 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