Brainsimulation
Simulation of the human brain.
|
Represents the behavior of single nodes. More...
#include "definitions.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... | |
Represents the behavior of single nodes.
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.
act_old | The old state information. |
slope_old | The old slope. |
number_d_neighbors | The number of direct neighbors. |
d_neighbors | Array of direct neighboring states. Length: number_d_neighbors. |
number_id_neighbors | The number of indirect neighbors. |
id_neighbors | Array of indirect neighboring states. Length: number_id_neighbors. |
This is the process done by the each agent.