diss.INT.PER {TSclust} | R Documentation |
Integrated Periodogram Based Dissimilarity
Description
Computes the dissimilarity between two time series in terms of the distance between their integrated periodograms.
Usage
diss.INT.PER(x, y, normalize=TRUE)
Arguments
x |
Numeric vector containing the first of the two time series. |
y |
Numeric vector containing the second of the two time series. |
normalize |
If |
Details
The distance is computed as:
where and
, with
and
in the normalized version.
and
in the non-normalized version.
and
denote the periodograms of
x
and y
, respectively.
Value
The computed distance.
Author(s)
Pablo Montero Manso, José Antonio Vilar.
References
Casado de Lucas, D. (2010) Classification techniques for time series and functional data.
Montero, P and Vilar, J.A. (2014) TSclust: An R Package for Time Series Clustering. Journal of Statistical Software, 62(1), 1-43. http://www.jstatsoft.org/v62/i01/.
See Also
Examples
## Create three sample time series
x <- cumsum(rnorm(100))
y <- cumsum(rnorm(100))
z <- sin(seq(0, pi, length.out=100))
## Compute the distance and check for coherent results
diss.INT.PER(x, y, normalize=TRUE)
diss.INT.PER(x, y, normalize=TRUE)
diss.INT.PER(x, y, normalize=TRUE)
diss( rbind(x,y,z), "INT.PER", normalize=FALSE )