sharpwaves#

class features.sharpwaves.SharpwaveAnalyzer(settings: NMSettings, ch_names: Sequence[str], sfreq: float)[source]#
analyze_waveform(data) dict[source]#

Given the scipy.signal.find_peaks trough/peak distance settings specified sharpwave features are estimated.

calc_feature(data: ndarray) dict[source]#

Given a new data batch, the peaks, troughs and sharpwave features are estimated. Importantly only new data is being analyzed here. In steps of 1/settings[“sampling_rate_features] analyzed and returned. Pre-initialized filters are applied to each channel.

Parameters:
  • (np.ndarray) (data)

  • (dict) (feature_results)

Returns:

feature_results (dict)

Return type:

set features for Features.py object