get_residuals_wrapper: r function to get waxman, erdos and PA residuals

Description Usage Arguments Details Value

Description

takes a pairwise distance matrix - negative distance represent edges and produces residuals.

Usage

1
2
get_residuals_wrapper(dist, p, q, s, PA_model = NULL, sample_size = NULL,
  n_samples)

Arguments

dist

pairwise distance matrix

p

erdos probability

q

waxman parameter

s

waxman parameter

PA_model

empirical model that gives prob for given node age if NULL does not calculate

sample_size

size of sample subgraph, if null calculates using formula in paper

n_samples

number of residuals to obtain

Details

For erdos it needs p, for waxman it needs s and q, for Barabasi it needs empirical function between node age and prob of an edge

Value

data frame of residuals


jonotuke/graphResiduals documentation built on May 19, 2019, 8:37 p.m.