Interface Model.HasDE.DGroups
- All Superinterfaces:
Features, Features.Groups, Features.Pairs, Model.HasDE, Model.HasDE.DPairs
- Enclosing interface:
Model.HasDE
Interface for differential equation models with interactions in groups of
arbitrary size.
- Author:
- Christoph Hauert
-
Nested Class Summary
Nested classes/interfaces inherited from interface Features
Features.Groups, Features.Multispecies, Features.Pairs, Features.Payoffs, Features.StaticNested 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 TypeMethodDescriptiondefault voidavgScores(double[] state, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystatefor pairwise interactions.voidavgScores(double[] state, int n, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystatefor interactions in groups of sizen.Methods inherited from interface Features
getTitle, isMultispecies, isStaticMethods inherited from interface Features.Groups
getNGroup, isPairwiseMethods inherited from interface Model.HasDE
getDependent
-
Method Details
-
avgScores
default void avgScores(double[] state, double[] scores) Description copied from interface:Model.HasDE.DPairsCalculate the average payoff for the frequency of traits specified in the arraystatefor pairwise interactions. The average payoffs for each of thenTraitstraits must be stored and returned in the arrayscores.- Specified by:
avgScoresin interfaceModel.HasDE.DPairs- Parameters:
state- the frequency/density of each traitscores- 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 arraystatefor interactions in groups of sizen. The average payoffs for each of thenTraitstraits 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
-