Package org.evoludo.simulator.models
Interface Model.HasDE.DGroups
- All Superinterfaces:
Features
,Features.Groups
,Features.Pairs
- Enclosing interface:
Model.HasDE
Interface for differential equation models with interactions in groups of
arbitrary size.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Features
Features.Groups, Features.Multispecies, Features.Pairs, Features.Payoffs, Features.Static
-
Method Summary
Modifier and TypeMethodDescriptionvoid
avgScores
(double[] state, int n, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystate
for interactions in groups of sizen
.Methods inherited from interface Features
getTitle, isMultispecies, isStatic
Methods inherited from interface Features.Groups
getNGroup, isPairwise
-
Method Details
-
avgScores
void avgScores(double[] state, int n, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystate
for interactions in groups of sizen
. The average payoffs for each of thenTraits
traits must be stored and returned in the arrayscores
.- Parameters:
state
- the frequency/density of each traitn
- the size of interaction groupsscores
- the array for storing the average payoffs/scores of each trait
-