Detect changes in multiple synchronous sequences.
Multiple sequence arguments are scanned for changes in the unique value combination at corresponding locations. Each change in the combination is taken as a new event onset. The length of an event is determined by the number of identical consecutive combinations.
Parameters : | **kwargs : sequences
|
---|---|
Returns : | list :
|
See also
Examples
>>> seq1 = ['one', 'one', 'two', 'two']
>>> seq2 = [1, 1, 1, 2]
>>> events = find_events(targets=seq1, chunks=seq2)
>>> for e in events:
... print e
{'chunks': 1, 'duration': 2, 'onset': 0, 'targets': 'one'}
{'chunks': 1, 'duration': 1, 'onset': 2, 'targets': 'two'}
{'chunks': 2, 'duration': 1, 'onset': 3, 'targets': 'two'}
mvpa2.datasets.eventrelated.extract_boxcar_event_samples
mvpa2.datasets.eventrelated.fit_event_hrf_model
Enter search terms or a module, class or function name.