sg.beta.sample_graph: Sample Graphs from Beta Distribution

Description Usage Arguments Value See Also

Description

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

Usage

1
sg.beta.sample_graph(alpha, beta, s = 10, type = "array")

Arguments

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.

Value

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.

See Also

list2array array2list


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