Skip to contents

Filter a signal

Usage

filter_signal(
  signal,
  filter = "sgolay",
  order = 2,
  window_length = NULL,
  cutoff_freq = NULL,
  sampling_freq = NULL,
  type = "low",
  apply = 1
)

Arguments

signal

Signal to filter.

filter

Type of filter (default is "sgolay", or "butter").

order

Order of the filter.

window_length

Window length of the Savitzky-Golay filter.

cutoff_freq

Cut-off frequency of the Butterworth filter.

sampling_freq

Sampling frequency of the signal.

type

Butterworth band type (default is "low").

apply

Apply the filter N times (default is 1).

Value

The filtered signal.