Learn R Programming

statcomp (version 0.1.0)

HVG: A function to compute Horizontal Visibility Graphs and associated statistics

Description

Calculates a Horizontal Visibility Graph

Usage

HVG(x, meth, maxL, rho)

Arguments

x

A time series

meth

A character string that describes the HVG method to use. Currently implemented: "HVG", "HVG_weighted", "LPHVG", "LPHVG_weighted".

maxL

Maximum length of the time series.

rho

Additional parameter

Value

A list that contains the adjacency matrix, degree distribution, and further HVG-based statistics.

Details

Horizontal Visibility Graphs map a time series into a complex network. Following Luque, B., Lacasa, L., Ballesteros, F. and Luque, J., 2009. Horizontal visibility graphs: Exact results for random time series. Physical Review E, 80(4), p.046103. ATTENTION: This function is still in development and needs further testing!

References

Luque, B., Lacasa, L., Ballesteros, F. and Luque, J., 2009. Physical Review E, 80(4), p.046103.

Examples

Run this code
# NOT RUN {
x = arima.sim(model=list(ar = 0.3), n = 10^2)
HVG(x, meth = "HVG", maxL = 10^9, rho = NA)
# }

Run the code above in your browser using DataLab