These functions allow measurement of various features of a diffusion process at the network level:
net_infection_complete()
measures the number of time steps until
(the first instance of) complete infection.
For diffusions that are not observed to complete,
this function returns the value of Inf
(infinity).
This makes sure that at least ordinality is respected.
net_infection_total()
measures the proportion or total number of nodes
that are infected/activated at some time by the end of the diffusion process.
This includes nodes that subsequently recover.
Where reinfection is possible, the proportion may be higher than 1.
net_infection_peak()
measures the number of time steps until the
highest infection rate is observed.
net_infection_complete(diff_model)
net_infection_total(diff_model, normalized = TRUE)
net_infection_peak(diff_model)
A valid network diffusion model,
as created by as_diffusion()
or play_diffusion()
.
Logical scalar, whether the centrality scores are normalized. Different denominators are used depending on whether the object is one-mode or two-mode, the type of centrality, and other arguments.
Other measures:
measure_attributes
,
measure_central_between
,
measure_central_close
,
measure_central_degree
,
measure_central_eigen
,
measure_closure
,
measure_cohesion
,
measure_diffusion_net
,
measure_diffusion_node
,
measure_features
,
measure_heterogeneity
,
measure_hierarchy
,
measure_holes
,
measure_periods
,
measure_properties
,
member_diffusion
Other diffusion:
make_play
,
measure_diffusion_net
,
measure_diffusion_node
,
member_diffusion
smeg <- generate_smallworld(15, 0.025)
smeg_diff <- play_diffusion(smeg, recovery = 0.2)
net_infection_complete(smeg_diff)
#> [1] Inf
net_infection_total(smeg_diff)
#> [1] 1
net_infection_peak(smeg_diff)
#> [1] 3