Package org.evoludo.simulator.models
Interface IBS.HasIBS.MCGroups
- All Superinterfaces:
Features,Features.Groups,Features.Pairs,IBS.HasIBS,IBS.HasIBS.CGroups,IBS.HasIBS.CPairs
- Enclosing interface:
IBS.HasIBS
Modules that offer individual based simulation models with continuous traits
and interactions in groups must implement this interface.
-
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 IBS.HasIBS
IBS.HasIBS.CGroups, IBS.HasIBS.CPairs, IBS.HasIBS.DGroups, IBS.HasIBS.DPairs, IBS.HasIBS.MCGroups, IBS.HasIBS.MCPairs -
Method Summary
Modifier and TypeMethodDescriptiondoublegroupScores(double[] me, double[] group, int len, double[] payoffs) Calculate the payoff/score for modules with interactions in groups and multiple single continuous traits.Methods inherited from interface Features
getTitle, isMultispecies, isStaticMethods inherited from interface Features.Groups
getNGroup, isPairwiseMethods inherited from interface IBS.HasIBS
createIBSMethods inherited from interface IBS.HasIBS.CGroups
groupScoresMethods inherited from interface IBS.HasIBS.CPairs
pairScores
-
Method Details
-
groupScores
double groupScores(double[] me, double[] group, int len, double[] payoffs) Calculate the payoff/score for modules with interactions in groups and multiple single continuous traits. The focal individual has traitsmeand the traits of itsleninteraction partners are given ingroup. The traits they are arranged in the usual manner, i.e. first all traits of the first group member then all traits by the second group member etc. for a total oflen*nTraitsentries. 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 seeIBS.HasIBS.CPairs.pairScores(double, double[], int, double[])).- Parameters:
me- the traits of the focal individualgroup- the traits of the group memberslen- the number of memebrs in the grouppayoffs- the array for returning the payoffs/scores for each group member- Returns:
- the payoff/score for the focal individual
-