randomizeParameter

network.randomizeParameter(parameterName, distribution)
Randomizes a specific parameter for all corresponding nodes.

Parameters

parameterName: string
Name of the parameter to be randomized.
distribution : distribution
Pick the parameter value from this distribution (see Randomizing node parameters).

Example (python-conedy)

import conedy as co


N = co.network()


N.randomNetwork(100, 0.1, co.roessler())


N.randomizeParameter ("roessler_omega", co.uniform (0.80, 0.85))


for i in range (0,100):
      print "Node " + str (i)+ ":"+ str(N.getParam(i, "roessler_omega"))

Example (conedy)

network N;


N.randomNetwork(100, 0.1, roessler());


N.randomizeParameter ("roessler_omega", uniform (0.80, 0.85));

int i;

for (i = 0; i < 100; i = i + 1)
{

      print "Node " + i+ ":"+ N.getParam(i, "roessler_omega")+newline;

};

Table Of Contents

Previous topic

randomNetwork

Next topic

randomizeStates