sPyNNaker neural_modelling 7.2.2
Loading...
Searching...
No Matches
Functions
random_selection_impl.h File Reference

Random partner selection rule. More...

#include "partner.h"
#include <neuron/spike_processing.h>

Go to the source code of this file.

Functions

static void partner_spike_received (uint32_t time, spike_t spike)
 Notifies the rule that a spike has been received.
 
static bool potential_presynaptic_partner (uint32_t time, uint32_t *restrict population_id, uint32_t *restrict sub_population_id, uint32_t *restrict neuron_id, spike_t *restrict spike, uint32_t *restrict m_pop_index)
 Choose the potential (remote) synaptic partner.
 

Detailed Description

Random partner selection rule.

Definition in file random_selection_impl.h.

Function Documentation

◆ partner_spike_received()

static void partner_spike_received ( uint32_t  time,
spike_t  spike 
)
inlinestatic

Notifies the rule that a spike has been received.

Not used by this rule

Parameters
[in]timeThe time that the spike was received at
[in]spikeThe spike that was received (includes the sending neuron ID)

Definition at line 30 of file random_selection_impl.h.

◆ potential_presynaptic_partner()

static bool potential_presynaptic_partner ( uint32_t  time,
uint32_t *restrict  population_id,
uint32_t *restrict  sub_population_id,
uint32_t *restrict  neuron_id,
spike_t *restrict  spike,
uint32_t *restrict  m_pop_index 
)
inlinestatic

Choose the potential (remote) synaptic partner.

Parameters
[in]timeThe current time
[out]population_idThe ID of the other population
[out]sub_population_idThe ID of the subpopulation (corresponds to remote SpiNNaker core handling the population)
[out]neuron_idThe ID of the neuron within the subpopulation
[out]spikeThe spike that made this a meaningful choice. This rule synthesises this.
[out]m_pop_indexThe master population table index.
Returns
True if a choice was made

Definition at line 44 of file random_selection_impl.h.