sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
formation_distance_dependent_impl.h File Reference

Synapse formation using a distance-dependent rule. More...

#include "formation.h"

Go to the source code of this file.

Data Structures

struct  formation_params_t
 Configuration of synapse formation rule. More...
 

Macros

#define MAX_SHORT   65535
 Largest value in a uint16_t
 

Functions

static int my_abs (int a)
 abs function
 
static bool synaptogenesis_formation_rule (current_state_t *current_state, const formation_params_t *params, uint32_t time, synaptic_row_t row)
 Formation rule for synaptogenesis; picks what neuron in the current population will have a synapse added, and then performs the addition.
 

Detailed Description

Synapse formation using a distance-dependent rule.

Definition in file formation_distance_dependent_impl.h.


Data Structure Documentation

◆ formation_params

struct formation_params

Configuration of synapse formation rule.

Describes the size of grid containing the neurons (the total number of neurons probably ought to be equal to or just a bit under grid_x × grid_y), and two tables of distance-dependent connection probabilities. The FF table describes ??? connection probabilities, and the LAT table describes lateral connection probabilities. Both are keyed by the square of the inter-neuron distance.

Note that both pre- and post-neurons are assumed to be on the same size of grid, and the inter-layer distance is assumed to be constant (so it can be accounted for in the construction of the tables).

Definition at line 39 of file formation_distance_dependent_impl.h.

Data Fields
uint32_t grid_x Size of grid containing neurons, X-dimension.
uint32_t grid_y Size of grid containing neurons, Y-dimension.
unsigned long fract grid_x_recip Reciprocal of grid_x.
unsigned long fract grid_y_recip Reciprocal of grid_y.
uint32_t ff_prob_size Size of FF probability table.
uint32_t lat_prob_size Size of LAT probability table.
uint16_t prob_tables[] Concatenated probability tables; first the FF table, then the LAT table.

Macro Definition Documentation

◆ MAX_SHORT

#define MAX_SHORT   65535

Largest value in a uint16_t

Definition at line 25 of file formation_distance_dependent_impl.h.

Function Documentation

◆ my_abs()

static int my_abs ( int  a)
static

abs function

Parameters
[in]avalue (must not be INT_MIN)
Returns
Absolute value of a

Definition at line 59 of file formation_distance_dependent_impl.h.

◆ synaptogenesis_formation_rule()

static bool synaptogenesis_formation_rule ( current_state_t current_state,
const formation_params_t *  params,
uint32_t  time,
synaptic_row_t  row 
)
inlinestatic

Formation rule for synaptogenesis; picks what neuron in the current population will have a synapse added, and then performs the addition.

Parameters
[in]current_statePointer to current state
[in]paramsPointer to rewiring data
[in]timeTime of formation
[in]rowThe row to form within
Returns
if row was modified

Definition at line 71 of file formation_distance_dependent_impl.h.