generateToyNetwork: Generate a fake network tab file

Description Usage Arguments Value See Also

Description

Generate a fake network tab file

Usage

1
2
generateToyNetwork(ninputs, p_link = 0.2, layers = c(3, 3),
  nfeedbacks = 0, p_layer_link = 0, fname = "")

Arguments

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.

Value

A 2-columns matrix representing the network as an adjacency list

See Also

Other toy data generation: addLayerLinks, createSimulation, generateToyDesign


MathurinD/STASNet documentation built on May 28, 2019, 1:50 p.m.