netdis_expected_counts: netdis_expected_counts

View source: R/measures_net_dis.R

netdis_expected_countsR Documentation

netdis_expected_counts

Description

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

Usage

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

Arguments

graphlet_counts

Matrix of graphlet and node counts (columns) for a nummber of ego networks (rows).

density_breaks

Density values defining bin edges.

density_binned_reference_counts

Reference network graphlet counts for each density bin.

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.

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.