Class SocialNetworkSampler
- java.lang.Object
-
- ch.ethz.matsim.socialnetworkgeneration.framework.SocialNetworkSampler
-
public class SocialNetworkSampler extends Object
Class that contains the general logic for generating a social network, using a heuristic approach that was shown empirically to perform well and fast on large scale networks.
It implements the appraoch described in chapter 5 of this dissertation. Please refer to it for details.
- Author:
- thibautd
-
-
Constructor Summary
Constructors Constructor Description SocialNetworkSampler(org.matsim.api.core.v01.population.Population population, EgoCharacteristicsDistribution degreeDistribution, CliquesFiller cliquesFiller, EgoLocator egoLocator, SpatialCollectionUtils.Metric<double[]> metric)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCliqueListener(Consumer<Set<Ego>> l)org.matsim.contrib.socnetsim.framework.population.SocialNetworksampleSocialNetwork()
-
-
-
Constructor Detail
-
SocialNetworkSampler
@Inject public SocialNetworkSampler(org.matsim.api.core.v01.population.Population population, EgoCharacteristicsDistribution degreeDistribution, CliquesFiller cliquesFiller, EgoLocator egoLocator, SpatialCollectionUtils.Metric<double[]> metric)- Parameters:
population- the population for which a social network will be generateddegreeDistribution- defines the rules to sample theCliqueStubs for each agentcliquesFiller- defines the rules to matchCliqueStubs to close the networkegoLocator- translates ego sociodemographics into a point in a cartesian space, used for closest-point matchingmetric- defines the metric used to find the "closest"Egoto a point in the space of sociodemographics.
-
-