Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions neurokit/bio/bio_eda.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
# ==============================================================================
# ==============================================================================
# ==============================================================================
def eda_process(eda, sampling_rate=1000, alpha=8e-4, gamma=1e-2, filter_type = "butter", scr_method="makowski", scr_treshold=0.1):
def eda_process(eda, sampling_rate=1000, alpha=8e-4, gamma=1e-2,
filter_type="butter", scr_method="makowski", scr_treshold=0.1,
band='lowpass', order=4, frequency=5):
"""
Automated processing of EDA signal using convex optimization (CVXEDA; Greco et al., 2015).

Expand Down Expand Up @@ -100,9 +102,9 @@ def eda_process(eda, sampling_rate=1000, alpha=8e-4, gamma=1e-2, filter_type = "
if filter_type is not None:
filtered, _, _ = biosppy.tools.filter_signal(signal=eda,
ftype=filter_type,
band='lowpass',
order=4,
frequency=5,
band=band,
order=order,
frequency=frequency,
sampling_rate=sampling_rate)

# Smoothing
Expand Down