initNodes()
Generate structure-array containing node-state information .
Syntax
node = initNodes(n)
node = initNodes(n,pMax,qMax)
node = initNodes(n,initialState,initialP,initialQ)
Description
initNodes(n) generates one-dimensional structure-array with
n nodes and randomly (uniformly distributed) sets initial node-states to 0 or 1. Update parameters
will randomly be set as follows: p = 1:4 ; q = 0; (as proposed by
Gershenson ([SP2]))
initNodes(n,pMax,qMax) generates one-dimensional structure-array with
n nodes and randomly (uniformly distributed) sets initial node-states to 0 or 1. Update parameters
p and q are also set randomly. (p ~ U[1:pMax], q ~ U[0:qMax])
initNodes(n,initialState,initialP,initialQ) generates one-dimensional sructure-array with n nodes and sets initial node-states according to
initialState array. Update parameters and q are set according to the vectors initialP and initialQ
Input:
n - Number of nodes in the Random Boolean Network
initialState - (Optional) Vector containing initial states of network nodes
initialP - (Optional) Vector containing initial update parameters p
initialQ - (Optional) Vector containing initial update parameters q
pMax - (Optional) Maximum value of p
qMax - (Optional) Maximum value of q
Output:
node - Structure-array of nodes
node.state - Actual State (0 or 1)
node.nextState - Next State (0 or 1)
node.nbUpdates - Number of updates on this node
node.input - Vector of indices to the incoming nodes
node.output - Vector of indices to the outgoing nodes
node.p - Update parameter p
node.q - Update parameter q
node.lineNumber - State-input-vector in decimal representation = LUT
rownumber
node.rule - Vector containing transition logic rule for this node
Example
Using
the Toolbox - CA: an application
See also
initConnections(),
initRules()
|