mne.preprocessing.compute_proj_ecg(raw, raw_event=None, tmin=-0.2, tmax=0.4, n_grad=2, n_mag=2, n_eeg=2, l_freq=1.0, h_freq=35.0, average=False, filter_length=‘10s’, n_jobs=1, ch_name=None, reject={‘eog’: 0.00025, ’grad’: 2e-10, ’mag’: 3e-12}, flat=None, bads=[], avg_ref=False, no_proj=False, event_id=999, ecg_l_freq=5, ecg_h_freq=35, tstart=0.0, qrs_threshold=’auto’, filter_method=’fft’, iir_params=None, copy=True, verbose=None)[source]¶Compute SSP/PCA projections for ECG artifacts.
Note
raw data must be preloaded.
| Parameters: | raw : mne.io.Raw 
 raw_event : mne.io.Raw or None 
 tmin : float 
 tmax : float 
 n_grad : int 
 n_mag : int 
 n_eeg : int 
 l_freq : float | None 
 h_freq : float | None 
 average : bool 
 filter_length : str | int | None 
 n_jobs : int 
 ch_name : string (or None) 
 reject : dict | None 
 flat : dict | None 
 bads : list 
 avg_ref : bool 
 no_proj : bool 
 event_id : int 
 ecg_l_freq : float 
 ecg_h_freq : float 
 tstart : float 
 qrs_threshold : float | str 
 filter_method : str 
 iir_params : dict | None 
 copy : bool 
 verbose : bool, str, int, or None 
  | 
|---|---|
| Returns: | proj : list 
 ecg_events : ndarray 
  | 
mne.preprocessing.compute_proj_ecg¶