Description Usage Arguments Value See Also
sg.bern.sample_graph
A function to sample from a graph-valued RV where each edge follows a bernoulli distribution.
1 2 | sg.bern.sample_graph(p, s = 10, type = "array", rewire = NaN,
directed = FALSE)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.