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.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 TypeMethodDescriptionvoidavgScores(double[] state, double[] scores) Calculate the average payoff for the frequency of traits specified in the arraystatefor pairwise interactions.Methods inherited from interface Features
getTitle, isMultispecies, isStaticMethods inherited from interface Features.Pairs
isPairwiseMethods 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 arraystatefor pairwise interactions. The average payoffs for each of thenTraitstraits 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
-