Function Reference
Initialisation | Evolution | Statistics | Data Management
 
Introduction
RBN Overview
Using the Toolbox
Function Reference
Research/Gallery
Download
Literature/Links
Contact
 

 

 

 

 

 
 
 
 


resetNodeStats()

Reset all variables of the node structure which are involved in statistical evaluation to zero.

Syntax

nodeUpdated = resetNodeStats(node)

Description

resetNodeStats(node) resets all variables of the node structure which are involved in statistical evaluation to zero.

Input:
node - 1 x n structure-array containing node information

Output: 
nodeUpdated - 1 x n structure-array containing updated node information ("nbUpdates"-field)

Example

>> [node, conn, rule] = bsn(10,2,'line');
>> [node, tsm] = evolveARBN(node,50);
>> node.nbUpdates
ans =
4
ans =
4
ans =
7
ans =
7
ans =
2
ans =
4
ans =
8
ans =
5
ans =
5
ans =
4

>> node = resetNodeStats(node);
>> node.nbUpdates
ans =
0
ans =
0
ans =
0
ans =
0
ans =
0
ans =
0
ans =
0
ans =
0
ans =
0
ans =
0

 

See also

countTransitionsPerNode(), displayNodeStats()

 

 
 
 
      Christian Schwarzer - EPFL