Description Usage Arguments Value See Also
View source: R/toy_data_generation.R
Generate a fake network tab file
1 2 | generateToyNetwork(ninputs, p_link = 0.2, layers = c(3, 3),
nfeedbacks = 0, p_layer_link = 0, fname = "")
|
ninputs |
An integer, the number of inputs in the model |
p_link |
Number or vector of number between 0 and 1. Probability of linking of each node in a layer with each node in the upper layer. |
layers |
A vector of integers, the size of the vector is the number of layers besides the receptor layer, and the integers are the number of nodes in each layer |
nfeedbacks |
An integer, the number of feedback (link from a bottom layer to an upper layer) |
p_layer_link |
Number or vector of number. Probability of two nodes in a layer being directly linked |
fname |
A filename where the adjacency list should be saved, "" for no saving. |
A 2-columns matrix representing the network as an adjacency list
Other toy data generation: addLayerLinks
,
createSimulation
,
generateToyDesign
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.