signal_pad: Pad signal with zeros.

View source: R/signal_pad.R

signal_padR Documentation

Pad signal with zeros.

Description

The function adds zeros to the input vector to reach a length, corresponding to the next higher power of two.

Usage

signal_pad(data)

Arguments

data

eseis object, numeric vector or list of objects, data set to be processed.

Value

Numeric vector or list of vectors, signal vector with added zeros.

Author(s)

Michael Dietze

Examples


## load example data set
data(rockfall)

## pad with zeros
rockfall_pad <- signal_pad(data = rockfall_eseis)

## compare lengths
rockfall_eseis$meta$n
rockfall_pad$meta$n
                     

eseis documentation built on Aug. 10, 2023, 5:08 p.m.

Related to signal_pad in eseis...