modularity_event_sampling: Event sample method for resolution parameters of modularity...

View source: R/resolution.R

modularity_event_samplingR Documentation

Event sample method for resolution parameters of modularity clustering.

Description

Sampling the resolution parameter via Event Sampling algorithm proposed in Jeub, L. G., et al. (2018). 'Multiresolution consensus clustering in networks.' Scientific reports 8(1): 1-16.

Usage

modularity_event_sampling(
  A,
  n.res,
  gamma.min = NULL,
  gamma.max = NULL,
  subsample = 200
)

Arguments

A

n-by-n sample adjacency matrix

n.res

total number of resolution parameters to sample

gamma.min

lower bound for the range of resolution parameters to sample from

gamma.max

upper bound for the range of resolution parameters to sample from

subsample

integer, number of sample used for deriving the resolutions via subsampling (default 200). This procedure is adopted to save computation especially when n is large.

Value

a vector of length n.res, sampled resolution parameters.


pengminshi/MRtree documentation built on March 6, 2023, 4:20 p.m.