Learn R Programming

tswge (version 2.1.0)

ample.spec.wge: Smoothed Periodogram using Parzen Window

Description

This function calculates and optionally plots the smoothed periodogram using the Parzen window. The truncation point may be chosen by the user

Usage

sample.spec.wge(x, dbcalc = "TRUE", plot = "TRUE")

Value

freq

The frequencies at which the smoothed periodogram is calculated

pzgram

The smoothed periodogram using the Parzen window

Arguments

x

Vector containing the time series realization

dbcalc

If dbcalc=TRUE, the calculation is in the log (dB) scale. If FALSE, then non-log calculations are made

plot

If PLOT=TRUE then the smoothed spectral estimate is plotted. If FALSE then no plot is created

Author

Wayne Woodward

References

"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott

Examples

Run this code
sample.spec.wge(rnorm(100))

Run the code above in your browser using DataLab