Learn R Programming

TDD (version 0.4)

Oversample: Oversample by Nearest-Neighbor Interpolation

Description

In order to maintain digital filter fidelity at very high frequencies, it is sometimes necessary to oversample a signal. This function oversamples a signal by nearest-neighbor interpolation.

Usage

Oversample(x, n)

Arguments

x
Signal to be oversampled
n
Factor by which it should be oversampled

Value

Details

The output probably needs to be decimated after deconvolution.

Examples

Run this code
# Oversample a random trace by a factor of 10
x = rnorm(100)
Oversample(x, 10)

Run the code above in your browser using DataLab