View source: R/measures_net_dis.R
netdis_centred_graphlet_counts | R Documentation |
Calculate expected graphlet counts for each ego network in a query graph and centre the actual counts by subtracting those calculated expected count values.
netdis_centred_graphlet_counts( graphlet_counts, ref_ego_density_bins, ref_binned_graphlet_counts, binning_fn, bin_counts_fn, exp_counts_fn, max_graphlet_size )
graphlet_counts |
Ego network graphlet counts for a query graph |
ref_ego_density_bins |
Either a list of previously calculated ego
network density bin edges from a reference network, or |
ref_binned_graphlet_counts |
Either expected graphlet counts for each
ego network density bin from a reference network (a matrix with columns
labelled by graphlet ID and rows by density bin index), |
binning_fn |
Function used to bin ego network densities. Only needed if
|
bin_counts_fn |
Function used to calculate expected graphlet counts in
each density bin. Only needed if |
exp_counts_fn |
Function used to map from binned reference counts to
expected counts for each graphlet in each ego network of the query graphs.
Takes |
max_graphlet_size |
max graphlet size to calculate centred counts for. Currently only size 4 and 5 are supported. |
graphlet_counts minus exp_graphlet_counts for graphlets up to size max_graphlet_size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.