tangle: Calculate Tangle

Description Usage Arguments Value Examples

View source: R/Tangle.R

Description

Tangle is an interative unfolding algorithm which measures complexity of a time series by forcing a 3-dimension embedding of this time series into an ellipse.

Usage

1
tangle(x, tau = NA, eps = 0.05, returnMats = TRUE)

Arguments

x

A vector of equally spaced time series data.

tau

Positive integer value for time lag associated with Takens' embedding matrix.

eps

A small positive value for determining if the untangling procedure should terminate.

returnMats

Boolean for determining if both tangled embedding matrix and untangled matrix are returned as well. If FALSE only tangleVal is returned.

Value

A list containing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Generate data from Lorenz attractor
library(nonlinearTseries)
lorTS <- lorenz(do.plot = FALSE)$x

# Downsample for example speed
samps <- seq(1, length(lorTS), length.out = 500)
lorTS <- lorTS[samps]

# Estimate tau
lorTau <- timeLag(lorTS)

# Calculate Tangle
tangle(lorTS, tau = lorTau)

RobertGM111/Tangle documentation built on Oct. 30, 2019, 10:59 p.m.