Interface Model.HasIBS.CGroups
- All Superinterfaces:
Features, Features.Groups, Features.Pairs, Model.HasIBS, Model.HasIBS.CPairs, Model.HasIBS.MCPairs
- All Known Subinterfaces:
Model.HasIBS.MCGroups
- Enclosing interface:
Model.HasIBS
Modules that offer individual based simulation models with continuous traits
and interactions in groups must implement this interface.
- 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.HasIBS
Model.HasIBS.CGroups, Model.HasIBS.CPairs, Model.HasIBS.DGroups, Model.HasIBS.DPairs, Model.HasIBS.MCGroups, Model.HasIBS.MCPairs -
Method Summary
Modifier and TypeMethodDescriptiondoublegroupScores(double me, double[] groupTraits, int len, double[] groupPayoffs) Calculate the payoff/score for modules with interactions in groups and a single continuous trait.Methods inherited from interface Features
getTitle, isMultispecies, isStaticMethods inherited from interface Features.Groups
getNGroup, isPairwiseMethods inherited from interface Model.HasIBS
createIBSMethods inherited from interface Model.HasIBS.CPairs
pairScores, pairScores
-
Method Details
-
groupScores
double groupScores(double me, double[] groupTraits, int len, double[] groupPayoffs) Calculate the payoff/score for modules with interactions in groups and a single continuous trait. The focal individual has traitmeand the traits of itsleninteraction partners are given ingroup. The payoffs/scores for each of thelenparticipants must be stored and returned in the arraypayoffs.Note:
Only the firstlen*nTraitsentries ingroupare guaranteed to exist and have meaningful values. The population structure may restrict the size of the interaction group.len≤nGroupalways holds.Important:
Must be overridden and implemented in subclasses that define game interactions among groups of individuals with multiple continuous traits (for groups with sizesnGroup>2, otherwise seeModel.HasIBS.CPairs.pairScores(double, double[], int, double[])).- Parameters:
me- the trait of the focal individualgroupTraits- the traits of the group memberslen- the number of members in the groupgroupPayoffs- the array for returning the payoffs/scores for each group member- Returns:
- the payoff/score for the focal individual
-