elephant.asset.asset.get_sse_start_and_end_time_bins¶
- elephant.asset.asset.get_sse_start_and_end_time_bins(sse)[source]¶
For each repeated sequence in the SSE pattern, returns the start and end time bin IDs.
For an SSE consisting of several pixels (i, j), the i and j elements represent the time bin IDs in the cluster matrix used to extract the SSE. The combination of all i and j elements in the SSE pixels defines the temporal profile of each repeated sequence in the SSE pattern. Therefore, the minimum and maximum values for each i and j will define when each repeated sequence occured in time.
- Parameters:
- ssedict
Dictionary of pixel positions (i, j) as keys and sets S of synchronous events as values, as returned by
ASSET.extract_synchronous_events()
.
- Returns:
- start, end: list
Two-element list containing the first bins (start) or the last bins (end) in each repeated sequence. In each list, the first element corresponds to the first sequence (elements i in the SSE pixel), and the second element corresponds to the second sequence (elements j in the SSE pixel).
See also
Examples
>>> sse = {(268, 51): {22, 27}, ... (274, 54): {26}, ... (274, 56): {77}, ... (274, 58): {26}, ... (275, 58): {92}, ... (276, 59): {9}, ... (277, 58): {26}, ... (277, 61): {26}} >>> start, end = get_sse_start_and_end_time_bins(sse) >>> print(start) [268, 51] >>> print(end) [277, 61]