Skip to content

Commit

Permalink
changed ecg quality interpolation from quadratic to linear
Browse files Browse the repository at this point in the history
  • Loading branch information
cgastaud committed Nov 30, 2024
1 parent 874260b commit 22b162c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurokit2/ecg/ecg_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _ecg_quality_averageQRS(ecg_cleaned, rpeaks=None, sampling_rate=1000):

# Interpolate
quality = signal_interpolate(
rpeaks, quality, x_new=np.arange(len(ecg_cleaned)), method="quadratic"
rpeaks, quality, x_new=np.arange(len(ecg_cleaned)), method="linear"
)

return quality
Expand Down

0 comments on commit 22b162c

Please sign in to comment.