Class AxelrodModel

java.lang.Object
org.episteme.social.sociology.AxelrodModel

public class AxelrodModel extends Object
Implementation of Axelrod's Model of Cultural Dissemination. Agents interact based on similarity and adopt traits from each other, leading to the emergence of cultural regions or total homogenization.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • AxelrodModel

      public AxelrodModel(Graph<Person> network, int numFeatures, int numTraits)
      Creates a new Axelrod model simulation.
      Parameters:
      network - the social network graph
      numFeatures - number of cultural features (dimensions)
      numTraits - number of possible traits per feature
  • Method Details

    • step

      public void step()
      Performs one simulation step. A random agent is picked, one of its neighbors is picked, and they interact with probability equal to their cultural similarity.
    • getCulture

      public int[] getCulture(Person p)