syn2post_mean#
- class brainpy.math.syn2post_mean(syn_values, post_ids, post_num, indices_are_sorted=False)[source]#
The syn-to-post mean computation.
- Parameters:
syn_values (
ArrayType) – The synaptic values.post_ids (
ArrayType) – The post-synaptic neuron ids. Ifpost_idsis generated bybrainpy.conn.TwoEndConnector, then it has sorted indices. Otherwise, this function cannot guarantee indices are sorted. You’s better setindices_are_sorted=False.post_num (
int) – The number of the post-synaptic neurons.indices_are_sorted (
whether ``post_ids`is known` tobe sorted.)
- Returns:
post_val – The post-synaptic value.
- Return type:
ArrayType