spread: Spread of activation process to determine activation of...

Description Usage Arguments Value Examples

Description

This function takes in a dataframe with 'node' and 'activation' columns, and simulates the spread of activation among nodes in a specified network structure.

Usage

1
2
spread(network, start_run, retention = 0.5, time = 10, decay = 0,
  suppress = 0)

Arguments

network

Network where the spreading occurs. Must be specified. Must be an igraph object with a "name" property or an adjacency matrix.

start_run

A non-empty dataframe with 'node' and 'activation' columns. Must be specified.

retention

Proportion of activation that remains in the node from which activation is being spread from. Ranges from 0 to 1. Default is 0.5.

time

Number of time steps to run the spread() function for. Default is 10.

decay

Proportion of activation that is lost at each time step. Ranges from 0 to 1. Default is 0.

suppress

Suppress nodes with a final activation of < x units at each time step to an activation value of 0. Default is 0.

Value

A compiled dataframe with 'node', 'activation' and 'time' columns showing the spread of activation in the network over time.

Examples

1
#See Vignette for examples.

csqsiew/SpANR documentation built on May 20, 2019, 9:44 a.m.