Apply a butterworth digital filter to a signal.

filter_signal(signal, n, w, type)

Arguments

signal

A numeric vector.

n

The order of the filter.

w

The critical frequency or frequencies.

type

The type of the filter.

Value

A numeric vector with the filtered signal.