#ifndef nmsim_network_H #define nmsim_network_H /* Types and functions for networks of Galves-Löcherbach neuron model. */ /* Last edited on 2019-01-11 18:04:54 by jstolfi */ #define _GNU_SOURCE #include #include #include #include typedef struct nmsim_network_t { int32_t np; /* Number of populations. */ nmsim_neuron_class_t *parm; /* Neuron parameters in each population ({np} elements). */ nmsim_bundle_parms_t *conn; /* Connection between populations ({np*np} elements). */ } nmsim_network_t; /* Statistical description of a network with {np} homogeneous populations of neurons, with specified ensemble parameters for neurons in each population and ensemble parameters for the connections between each pair of populations. The data about population {r} is {.parm[r]}, for {r} in {0..np-1}. The parameters of the distribution of synapses from population {r} to population {s} are {.conn[r + s*np]}, for {r,s} in {0.np-1}. Note that a population usually has connections to itself too. */ /* MEAN-FIELD SIMULATION */ void nmsim_network_mf_evolve ( void ); /* Simulates the evolution of a network with one or more homogeneous populations of neurons with stochastic states {net.pso[k]} and neuron parameters {parm} from some discrete time {t} to time {t+1}. In addition to synaptic inputs, each neuron {i} in the population {k} is also assumed to have received, between times {t} and {t+1}, an external input signal {I[i,t]}, which is a normally distributed variable with mean and deviation given by {net.exin(k,t,&I_avg,I_dev)} ??? Should the input signal be modulated by the input gain factor {G[i,t]} too? ??? */ #endif