Interface Model.HasDE.DPairs

All Superinterfaces:
Features, Features.Pairs, Model.HasDE
All Known Implementing Classes:
ATBT, DemesTBT, RSP, simTBT, simTraits, TBT, Traits
Enclosing interface:
Model.HasDE

public static interface Model.HasDE.DPairs extends Model.HasDE, Features.Pairs
Interface for differential equation models with pairwise interactions.
  • Method Details

    • avgScores

      void avgScores(double[] state, double[] scores)
      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.
      Parameters:
      state - the frequency/density of each trait
      scores - the array for storing the average payoffs/scores of each trait