Package io.github.ai4ci.abm
Class SocialRelationship
java.lang.Object
org.jgrapht.graph.DefaultWeightedEdge
io.github.ai4ci.abm.SocialRelationship
- All Implemented Interfaces:
Serializable
,Cloneable
public class SocialRelationship
extends org.jgrapht.graph.DefaultWeightedEdge
implements Serializable
A weighted network edge.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
double
contactProbability
(double adjMobility1, double adjMobility2) double
The significance of the relationship.Methods inherited from class org.jgrapht.graph.DefaultWeightedEdge
getSource, getTarget, getWeight, toString
-
Constructor Details
-
SocialRelationship
public SocialRelationship()
-
-
Method Details
-
getRelationshipStrength
public double getRelationshipStrength()The significance of the relationship. This is a probability / quantile that a contact will occur given 2 maximally mobile participants. A value near 1 here signifies a close relationship between two individuals. A value near zero is an improbable contact- Returns:
-
contactProbability
public double contactProbability(double adjMobility1, double adjMobility2) -
clone
-