Network dynamics simulation related structures and functions.
More...
#include "ne_dyn_vec.h"
#include "ne_sys.h"
Go to the source code of this file.
Defines |
#define | ne_sim_node_state_index_m(s, n, i) ((n*s->nodeStates)+i) |
| Macro for accessing a particular nodes data from simulation array.
|
#define | ne_sim_eid_state_index_m(s, e, i) ((igraph_vcount(s->graph)*s->nodeStates)+(e*s->edgeStates)+i) |
| Macro for accessing a particular edges data from simulation array.
|
Typedefs |
typedef ne_dyn_vec_t * | ne_sim_fn_t (ne_sys_t *sys, void *params, double *iy, FILE *file) |
| Function type that can be used for simulaton of dynamics.
|
Functions |
void | ne_sim_fprint_array (double t, double *y, int size, FILE *file) |
| Print an array to file.
|
void | ne_sim_fprint_dyn_vec (ne_dyn_vec_t *dyn, FILE *file) |
| Print a simulation output to file.
|
Detailed Description
Network dynamics simulation related structures and functions.
So that different network simulators can be used interchangably we define the prototype they must adhere to. Also there are some general functions for accessing node and edge simulation data and printing the simulation results to file.
- Author:
- T.E. Gorochowski
Definition in file ne_sim.h.
Define Documentation
#define ne_sim_eid_state_index_m |
( |
|
s, |
|
|
|
e, |
|
|
|
i | |
|
) |
| | ((igraph_vcount(s->graph)*s->nodeStates)+(e*s->edgeStates)+i) |
Macro for accessing a particular edges data from simulation array.
Definition at line 40 of file ne_sim.h.
#define ne_sim_node_state_index_m |
( |
|
s, |
|
|
|
n, |
|
|
|
i | |
|
) |
| | ((n*s->nodeStates)+i) |
Macro for accessing a particular nodes data from simulation array.
Definition at line 38 of file ne_sim.h.
Typedef Documentation
Function type that can be used for simulaton of dynamics.
All dynamics simulator must use this prototype.
Definition at line 47 of file ne_sim.h.
Function Documentation
void ne_sim_fprint_array |
( |
double |
t, |
|
|
double * |
y, |
|
|
int |
size, |
|
|
FILE * |
file | |
|
) |
| | |
Print an array to file.
Definition at line 26 of file ne_sim.c.
void ne_sim_fprint_dyn_vec |
( |
ne_dyn_vec_t * |
dyn, |
|
|
FILE * |
file | |
|
) |
| | |
Print a simulation output to file.
Definition at line 37 of file ne_sim.c.