Learn R Programming

rticulate (version 2.0.1)

resample_signal: Resample (up or down) a signal

Description

Resample (up or down) a signal

Usage

resample_signal(
  signal,
  time,
  by = 2,
  to = NULL,
  from = NULL,
  method = "interpolation"
)

Value

A list with the resampled signal and time if methdo = "interpolate".

Arguments

signal

The signal to resample.

time

The time vector of the signal to resample.

by

The factor by which to resample the signal (default is 2).

to

The frequency to resample to.

from

The original sampling frequency.

method

Resampling method (default is interpolate which uses approx).