density_binned_counts: Used to calculate aggregated graphlet counts for each density...

View source: R/measures_net_dis.R

density_binned_countsR Documentation

Used to calculate aggregated graphlet counts for each density bin.

Description

Used to calculate aggregated graphlet counts for each density bin.

Usage

density_binned_counts(
  graphlet_counts,
  density_interval_indexes,
  agg_fn = mean,
  scale_fn = NULL,
  max_graphlet_size = NULL
)

Arguments

graphlet_counts

Graphlet and node counts (columns) for a number of ego_networks (rows).

density_interval_indexes

Density bin index for each ego network.

agg_fn

Function to aggregate counts in each bin (default agg_fn = mean).

scale_fn

Optional function to apply a transformation/scaling to the raw graphlet_counts. Must have arguments graphlet_counts and max_graphlet_size, and return a transformed graphlet_counts object with the same number of rows as the input, and columns for all graphlets up to max_graphlet_size.

max_graphlet_size

Optionally passed and used by scale_fn.


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