Brainsimulation
Simulation of the human brain.
Functions
nodefunc.h File Reference

Represents the behavior of single nodes. More...

#include "definitions.h"
Include dependency graph for nodefunc.h:

Go to the source code of this file.

Functions

nodestate_t process (nodeval_t act_old, nodeval_t slope_old, int number_d_neighbors, nodeval_t *d_neighbors, int number_id_neighbors, nodeval_t *id_neighbors)
 This is the process done by the each agent. More...
 

Detailed Description

Represents the behavior of single nodes.

Function Documentation

nodestate_t process ( nodeval_t  act_old,
nodeval_t  slope_old,
int  number_d_neighbors,
nodeval_t d_neighbors,
int  number_id_neighbors,
nodeval_t id_neighbors 
)

This is the process done by the each agent.

Takes the old state and information about the neighbors and calculated the new energy level.

Parameters
act_oldThe old state information.
slope_oldThe old slope.
number_d_neighborsThe number of direct neighbors.
d_neighborsArray of direct neighboring states. Length: number_d_neighbors.
number_id_neighborsThe number of indirect neighbors.
id_neighborsArray of indirect neighboring states. Length: number_id_neighbors.
Returns
The new resulting energy level.

This is the process done by the each agent.