Learn R Programming

RSEIS (version 4.2-4)

get.slepians: Get Slepian Tapers

Description

Return a matrix of Slepian tapers

Usage

get.slepians(npoints = 900, nwin = 5, npi = 3)

Value

Matrix: nwin vectors of npoints Slepian tapers

Arguments

npoints

Number of points to return

nwin

Number of windows (default =5)

npi

Pi-Prolate numerber (3)

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

This function onlyu returns the tapers for inspection. To apply the tapers use the function mtapspec.

References

Lees, J. M. and Park, J., 1995: Multiple-taper spectral analysis: A stand-alone C-subroutine, Computers and Geology, 21(2), 199-236.

See Also

mtapspec

Examples

Run this code

nwin <- 5
npi <- 3
npoints <- 900
sleps <- get.slepians(npoints, nwin, npi)

matplot(sleps, type='l', xlab="Index", ylab="Taper Amplitude")
legend('topleft', legend=1:nwin, lty=1:nwin, col=1:nwin)



Run the code above in your browser using DataLab