generate_graphon {localboot} | R Documentation |
Generate a Graphon Probability Matrix
Description
This function generates a graphon probability matrix based on a specified graphon type. Users can control the generation process through various parameters.
Usage
generate_graphon(size, graph_num = 1, sampling_on_u = TRUE, u_input = NULL)
Arguments
size |
An integer specifying the size of the network. |
graph_num |
An integer (default is 1) indicating the graphon type to use. Acceptable values are from 1 to 6. |
sampling_on_u |
A logical value determining if uniform sampling should be used for 'u'. Defaults to TRUE. If FALSE, a regular sequence from 0 to 1 is used. |
u_input |
An optional numeric vector that provides specific values for 'u'. If NULL (default), 'u' is generated based on 'sampling_on_u'. |
Value
A matrix of probabilities is returned.
Examples
# Generate a graphon probability matrix of size 100 using graphon setting 1
P = generate_graphon(100, 1)
[Package localboot version 0.9.2 Index]