upsample | R Documentation |
Upsample a signal by an integer factor.
upsample(x, n, phase = 0)
x |
input data, specified as a numeric vector or matrix. In case of a vector it represents a single signal; in case of a matrix each column is a signal. |
n |
upsampling factor, specified as a positive integer. The signal is
upsampled by inserting |
phase |
offset, specified as a positive integer from |
Upsampled signal, returned as a vector or matrix.
Paul Kienzle, pkienzle@users.sf.net.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
downsample
, interp
,
decimate
, resample
x <- seq_len(4)
u <- upsample(x, 3)
u <- upsample(x, 3, 2)
x <- matrix(seq_len(6), 3, byrow = TRUE)
u <- upsample(x, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.