Class SocialCapitalModel
java.lang.Object
org.episteme.social.sociology.SocialCapitalModel
Utility class for modeling social capital and analyzing network properties.
Provides metrics for network density, trust, and capital types (Bonding vs Bridging).
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic RealcalculateBondingCapital(Person person, SociologicalGroup SociologicalGroup, SocialNetwork network) Calculates the "Bonding Social Capital" of a person within a specific SociologicalGroup.static RealcalculateBridgingCapital(Person person, Set<SociologicalGroup> primaryGroups, SocialNetwork network) Calculates the "Bridging Social Capital" of a person.static RealcalculateDensity(int nodes, int edges, boolean directed) Calculates the Network Density.static RealcalculateSocialCohesion(SociologicalGroup SociologicalGroup, SocialNetwork network) Estimates "Social Cohesion" of a SociologicalGroup.static RealreciprocityIndex(int mutualLinks, int totalLinks) Calculates a Trust Index based on reciprocity in relationships.
-
Method Details
-
calculateDensity
Calculates the Network Density. Defined as the ratio of actual connections to the total number of possible connections.- Parameters:
nodes- number of individuals (nodes)edges- number of relationships (edges)directed- true if relationships are directed (A->B != B->A), false otherwise- Returns:
- the density value between 0.0 and 1.0
-
reciprocityIndex
Calculates a Trust Index based on reciprocity in relationships.- Parameters:
mutualLinks- count of bidirectional (reciprocated) linkstotalLinks- count of total links- Returns:
- the reciprocity index
-
calculateBondingCapital
public static Real calculateBondingCapital(Person person, SociologicalGroup SociologicalGroup, SocialNetwork network) Calculates the "Bonding Social Capital" of a person within a specific SociologicalGroup. This is measured as the ratio of ties within the SociologicalGroup to the SociologicalGroup size.- Parameters:
person- the person to analyzeSociologicalGroup- the SociologicalGroup they belong tonetwork- the social network- Returns:
- internal tie ratio
-
calculateBridgingCapital
public static Real calculateBridgingCapital(Person person, Set<SociologicalGroup> primaryGroups, SocialNetwork network) Calculates the "Bridging Social Capital" of a person. Measured as the number of ties to people outside their primary groups.- Parameters:
person- the person to analyzeprimaryGroups- the groups the person belongs tonetwork- the social network- Returns:
- count of external ties
-
calculateSocialCohesion
public static Real calculateSocialCohesion(SociologicalGroup SociologicalGroup, SocialNetwork network) Estimates "Social Cohesion" of a SociologicalGroup. Average of all internal bonding capital scores.- Parameters:
SociologicalGroup- the SociologicalGroupnetwork- the network- Returns:
- cohesion index
-