sg.bern.sample_graph: Sample Graphs from Bernoulli Distribution

Description Usage Arguments Value See Also

Description

sg.bern.sample_graph A function to sample from a graph-valued RV where each edge follows a bernoulli distribution.

Usage

1
2
sg.bern.sample_graph(p, s = 10, type = "array", rewire = NaN,
  directed = FALSE)

Arguments

p

a [n x n] matrix indicating the alphas of each edge.

type

an option of "list" or "array" (default) for the format of the output.

rewire

the probability of arbitrarily rewiring edges.

n

the number of graphs to sample.

Value

sample the graph observations from the given beta distribution. - if type == "list", returns a p element list of [n x m] observations. - if type == "array" (default), returns a [n x m x s] element array where the 3rd dimension indexes the observations.

See Also

list2array array2list


neurodata/wssg documentation built on May 16, 2019, 10:05 a.m.