View source: R/Distance_matrix_knn_algorithm.R
distance_matrix_RGPDC | R Documentation |
Pairwise distance matrix of a multivariate time series based on the the restricted generalized partial directed coherence distance between two series
distance_matrix_RGPDC(unit, pmax, period)
unit |
A matrix representing a multivariate time series where each column is a univariate time series. |
pmax |
maximum order(lag) of the VAR model to be considered |
period |
Integer referencing the index of the frequency to use for the distance. It gives the Hertz or periods per unit of time; i.e., if the sampling is per minute, and each hour cycle is the period of interest |
a matrix with pairwise distances
Siggiridou, Elsa, Vasilios K. Kimiskidis, and Dimitris Kugiumtzis. "Dimension Reduction of Frequency-Based Direct Granger Causality Measures on Short Time Series." Journal of Neuroscience Methods 289 (September 2017) : 64-74. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jneumeth.2017.06.021")}
X=matrix( rnorm(2000), ncol=10 )
pmax=4
period=3
distance_matrix_RGPDC(unit=X, pmax, period)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.