Package io.github.ai4ci.config.setup
Interface AgeStratifiedNetworkConfiguration
- All Superinterfaces:
Abstraction.Named
,Abstraction.Replica
,Serializable
,SetupConfiguration
- All Known Subinterfaces:
AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
- All Known Implementing Classes:
ImmutableAgeStratifiedNetworkConfiguration
,PartialAgeStratifiedNetworkConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault double
adjustedProbabilityContact
(double p, Person one, Person two) Compared to an average relationship strength of 1 how close is the relationship between two people, expressed as an odds ratio.int
double
default Abstraction.SimpleFunction
Methods inherited from interface io.github.ai4ci.abm.mechanics.Abstraction.Named
getName
Methods inherited from interface io.github.ai4ci.abm.mechanics.Abstraction.Replica
getReplicate
Methods inherited from interface io.github.ai4ci.config.setup.SetupConfiguration
getHilbertCoords, getInitialImports, getNetworkSize, withName, withReplicate
-
Field Details
-
DEFAULT
-
-
Method Details
-
getAgeDistribution
EmpiricalDistribution getAgeDistribution() -
getNetworkConnectedness
int getNetworkConnectedness() -
getNetworkRandomness
double getNetworkRandomness() -
getOddsContactFromAgeDifference
Abstraction.SimpleFunction getOddsContactFromAgeDifference() -
getNormalisedOddsContactFromAgeDifference
-
adjustedProbabilityContact
Compared to an average relationship strength of 1 how close is the relationship between two people, expressed as an odds ratio. I.e. an OR of 2 means that the odds of the contact is doubled. The underlying probability of the contact is still random but this will change the distribution depending on the contact individual.
-