Package org.evoludo.simulator.models
Interface Model.HasDE.DPairs
- All Superinterfaces:
Features
,Features.Pairs
,Model.HasDE
- Enclosing interface:
Model.HasDE
Interface for differential equation models with pairwise interactions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Features
Features.Groups, Features.Multispecies, Features.Pairs, Features.Payoffs, Features.Static
Nested classes/interfaces inherited from interface Model.HasDE
Model.HasDE.DGroups, Model.HasDE.DPairs, Model.HasDE.DualDynamics, Model.HasDE.EM, Model.HasDE.ODE, Model.HasDE.PDE, Model.HasDE.PDEADV, Model.HasDE.PDERD, Model.HasDE.RK5, Model.HasDE.SDE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
avgScores
(double[] state, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystate
for pairwise interactions.Methods inherited from interface Features
getTitle, isMultispecies, isStatic
Methods inherited from interface Features.Pairs
isPairwise
Methods inherited from interface Model.HasDE
getDependent
-
Method Details
-
avgScores
void avgScores(double[] state, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystate
for pairwise interactions. The average payoffs for each of thenTraits
traits must be stored and returned in the arrayscores
.- Parameters:
state
- the frequency/density of each traitscores
- the array for storing the average payoffs/scores of each trait
-