taper {Rsac} | R Documentation

## TAPER

### Description

Applies a symmetric taper to each side of the SAC records.

### Usage

    taper(x, type = c("hanning", "hamming", "cosine"),
          width = 0.05)

### Arguments

`x` | an object of class `"rsac"`.
`type` | Valid values are: ‘hanning’, ‘hamming’, and ‘cosine’.
`width` | the width of the taper. Values larger than 0.5 should probably never be used.

### Value

same as input.

### Author(s)

Eric M. Thompson <eric.thompson@tufts.edu>

### Examples

    x <- rsac.skeleton(1)
    x[[1]]$amp <- runif(1e3, min = -1)
    x[[1]]$dt <- 1

    plot(x)

    x.t <- taper(x)
    lines(x.t, col = "blue")

[Package Rsac version 0.1-8 Index]