Brainsimulation
Simulation of the human brain.
|
Common definitions (mostly types). More...
#include <pthread.h>
Go to the source code of this file.
Data Structures | |
struct | nodetimeseries_t |
Struct to store the results of a simulation for a single observed node. More... | |
struct | nodeinputseries_t |
Struct to store the input for the simulation for a single node. More... | |
struct | nodestate_t |
Struct to store the status of one node. More... | |
struct | partialsimulationcontext_t |
Struct to pass all execution information to a new thread for executing a tick (or parts thereof). More... | |
Macros | |
#define | MULTITHREADING 1 |
1 if multithreading is enabled, 0 otherwise. | |
#define | THREADFACTOR 1 |
Flouting point factor to modifiy the number of threads in relation to the number of logical processors on the execution system. | |
#define | D_NEIGHBORFACTOR 1 |
Ratio of how much the direct neighbors influence the energy state of any node. More... | |
#define | ID_NEIGHBORFACTOR 1 |
Ratio of how much the indirect neighbors influence the energy state of any node. More... | |
#define | DAMPING 0.001 |
DEPRECATED. More... | |
#define | ENERGY_FACTOR 1 |
Ratio of how much the historical energy state negatively influences the current energy slope. More... | |
#define | ENERGY_WEIGHT 1 |
Ratio of how much the historical energy state influences the current energy state. More... | |
#define | DELTA_FACTOR 1 |
Ratio of how much the current slope vector influences the slope calculation. More... | |
#define | SLOPE_FACTOR 1 |
Ratio of how much the historical slope influences the current energy state. More... | |
#define | SLOPE_WEIGHT 1 |
Ratio of how much the current calculated slope influences the current energy state. More... | |
Typedefs | |
typedef pthread_t | threadhandle_t |
Platform-independent thread handle. | |
typedef pthread_barrier_t | threadbarrier_t |
Platform-independent thread barrier. | |
typedef double | nodeval_t |
Type that the nodes in the brainsimulation use to store their energy level. | |
typedef int(* | kernelfunc_t) (nodeval_t *, int, int, nodeval_t **, int, int) |
Definition of the kernel-function interface. | |
Common definitions (mostly types).
#define D_NEIGHBORFACTOR 1 |
Ratio of how much the direct neighbors influence the energy state of any node.
This is a factor multiplied with the direct neighbor-energy. See parameter (a1) in the flowchart. Usually a number in (0,1], however numbers > 1 are possible. Default is 1.
#define DAMPING 0.001 |
DEPRECATED.
CURRENTLY IGNORED. The amount of physical damping applied at each simulation step for each energy level, i.e., the ratio of energy loss per simulation tick. The energy level is damped using the function: enery_level = energy_level / (1 + DAMPING). Default: 0.001.
#define DELTA_FACTOR 1 |
Ratio of how much the current slope vector influences the slope calculation.
This is a factor multiplied with the current slope vector. See parameter (e) in the flowchart. Usually a number in (0,1], however numbers > 1 are possible. Default is 1.
#define ENERGY_FACTOR 1 |
Ratio of how much the historical energy state negatively influences the current energy slope.
This is a factor multiplied with the historical energy. See parameter (b) in the flowchart. Usually a number in (0,1], however numbers > 1 are possible. Default is 1.
#define ENERGY_WEIGHT 1 |
Ratio of how much the historical energy state influences the current energy state.
This is a factor multiplied with the historical energy. See parameter (g) in the flowchart. Usually a number in (0,1], however numbers > 1 are possible. Default is 1.
#define ID_NEIGHBORFACTOR 1 |
Ratio of how much the indirect neighbors influence the energy state of any node.
This is a factor multiplied with the indirect neighbor-energy. See parameter (a2) in the flowchart. Usually a number in (0,1], however numbers
1 are possible. Default is 1.
#define SLOPE_FACTOR 1 |
Ratio of how much the historical slope influences the current energy state.
This is a factor multiplied with the historical slope. See parameter (d) in the flowchart. Usually a number in (0,1], however numbers > 1 are possible. Default is 1.
#define SLOPE_WEIGHT 1 |
Ratio of how much the current calculated slope influences the current energy state.
This is a factor multiplied with the slope. See parameter (h) in the flowchart. Usually a number in (0,1], however numbers > 1 are possible. Default is 1.