observeSum

network.observeSum(fileName, edgeType = edge)
Adds the mean of node state 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.
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

N = co.network()

co.set ("samplingTime" , 1.0);

for i in range (0,100):
      N.addNode(co.logisticMap())

N.randomizeStates(co.logisticMap(), co.constant (0.4))
N.observeSum("output/observeSum.py.sum")

N.evolve(0.0,100.0)

Example (conedy)

network N;

samplingTime = 1.0;

loop(100) N.addNode(logisticMap());

N.randomizeStates(logisticMap(), constant (0.4));
N.observeSum("output/observeSum.co.sum");

N.evolve(0.0,100.0);

Table Of Contents

Previous topic

observePhaseCoherence

Next topic

observeTime