Description Usage Arguments Value Examples
Compute cepstrum of a univariate, real-valued timeseries
1 |
s |
real-valued, univariate timeseries |
taper |
taper applied to s prior to fft; one of "hamming" (default), "akaike" or "gausswin" |
poly |
polynomial order of trend removed from the log of power spectral density; defaults to 5 |
data.frame with quefrency and cepstrum
1 2 3 4 5 6 7 8 | t <- 1:500
f <- seq( 0.05, 0.25, 0.05 )
s <- sapply( t, function( x, y ) sum( sin( 2 * pi * x * y ) ), y = f )
s <- s + rnorm( length( t ), sd = 0.5 )
c <- cepstrum( s, taper = "akaike" )
ggplot( c, aes( x = quefrency, y = cepstrum ) ) + geom_line() +
labs( x = "Quefrency", y = "Cepstrum" )
# harmonics spaced at 0.05 produce peak at quefrency of 20 (1 / 20 = 0.05 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.