Description Usage Arguments Value See Also
sg.beta.sample_graph
A function to sample from a graph-valued RV where each edge follows a beta distribution.
1 | sg.beta.sample_graph(alpha, beta, s = 10, type = "array")
|
alpha |
a [n x n] matrix indicating the alphas of each edge. |
beta |
a [n x n] matrix indicating the betas of each edge. |
s |
the number of graphs to sample. |
type |
an option of "list" or "array" (default) for the format of the output. |
sample the graph observations from the given beta distribution. - if type == "list", returns a p element list of [n x n] observations. - if type == "array" (default), returns a [n x n 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.