elephant.asset.asset.synchronous_events_contained_in

elephant.asset.asset.synchronous_events_contained_in(sse1, sse2)[source]

Given two sequences of synchronous events (SSEs) sse1 and sse2, each consisting of a pool of pixel positions and associated synchronous events (see below), determines whether sse1 is strictly contained in sse2.

sse1 is strictly contained in sse2 if all its pixels are pixels of sse2, if its associated events are subsets of the corresponding events in sse2, and if sse2 contains non-empty events, or neuron IDs in some event, which do not belong to sse1 (i.e., sse1 and sse2 are not identical).

Both sse1 and sse2 must be provided as dictionaries of the type

{(i1, j1): S1, (i2, j2): S2, …, (iK, jK): SK},

where each i, j is an integer and each S is a set of neuron IDs.

Parameters:
sse1, sse2dict

Dictionaries of pixel positions (i, j) as keys and sets S of synchronous events as values.

Returns:
bool

True if sse1 is a subset of sse2.

See also

ASSET.extract_synchronous_events

extract SSEs from given spike trains