network.observe(nodeNumber, fileName, edgeType = edge)
Adds the state of the node nodeNumber to the list of observed features. Whenever net.snapshot or net.evolve is called, observed features of the network will be written to the respective files. The file format is a space delimited matrix in which columns are observed features in the order in which they are added to the network.


nodeNumber : int
The number of the node that is to be observed
fileName : string
The name of the file to which data is written
edgeType : edgeTemplate
Nodes are observed via an edge, which is a copy of this template.

Example (python-conedy)

import conedy as co

co.set("samplingTime",  1.0)

N = co.network()

newNodeNumber = N.addNode(co.logisticMap())
N.setState(newNodeNumber, 0.3)
N.observe(newNodeNumber, "output/observe.py.series")

N.evolve (0.0,1000.0)

Example (conedy)

network N;

samplingTime = 1.0;
int newNodeNumber;

newNodeNumber = N.addNode(logisticMap());
N.setState(newNodeNumber, 0.3);
N.observe(newNodeNumber, "output/observe.co.series");

N.evolve (0.0,1000.0);

Table Of Contents

Previous topic


Next topic