View source: R/Band_Depth_Distance.R
dxy_bands | R Documentation |
Distance based on a depth concept, given a set of bands a modified Jaccard measure is compute between the sets of indices that two series share, the Jaccard distances then are averaged over all informative bands.
dxy_bands(allbands, x, y)
allbands |
a list with two elements the lowerbounds of all (n)(n-1)/2 pairs and the upperbounds of the pairwise bands. |
x |
A vector representing a univariate time series |
y |
A vector representing a univariate time series |
A non-negative value representing the distance between two time series, based on the concept of band depth.
Band Depth Clustering for Nonstationary Time Series and Wind Speed Behavior (2018) Tupper et al
X=matrix( rnorm(200), ncol=10 )
M=all_bands(X)
dxy_bands(M,X[,1],X[,2] )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.