netdis_expected_counts_ego: netdis_expected_counts_ego INTERNAL FUNCTION - Do not call...

View source: R/measures_net_dis.R

netdis_expected_counts_egoR Documentation

netdis_expected_counts_ego INTERNAL FUNCTION - Do not call directly

Description

Calculates expected graphlet counts for one ego network based on its density and pre-calculated reference density bins and graphlet counts for each bin.

Usage

netdis_expected_counts_ego(
  graphlet_counts,
  max_graphlet_size,
  density_breaks,
  density_binned_reference_counts,
  scale_fn = NULL
)

Arguments

graphlet_counts

Node and graphlet counts for an ego network.

max_graphlet_size

Determines the maximum size of graphlets to count. Only graphlets containing up to max_graphlet_size nodes are counted. Currently only size 4 and 5 are supported.

density_breaks

Density values defining bin edges.

density_binned_reference_counts

Reference network graphlet counts for each density bin.

scale_fn

Optional function to scale calculated expected counts, taking graphlet_counts and max_graphlet_size as arguments, and returning a scale factor that the looked up density_binned_reference_counts values will be multiplied by.


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.