Learn R Programming

patterncausality (version 0.2.0)

stateSpaceMethod: State Space Reconstruction Interface

Description

A generic interface for reconstructing state spaces from time series data using either built-in or custom methods.

Usage

stateSpaceMethod(x, E, tau, ...)

# S3 method for default stateSpaceMethod(x, E, tau, ...)

# S3 method for custom stateSpaceMethod(x, E, tau, method, ...)

Value

A list containing the reconstructed state space components

Arguments

x

Input time series

E

Embedding dimension (positive integer)

tau

Time delay (positive integer)

...

Additional arguments passed to methods

method

Custom function for state space reconstruction

Methods (by class)

  • stateSpaceMethod(default): Default state space reconstruction

  • stateSpaceMethod(custom): Custom state space reconstruction

Details

Generic Interface for State Space Reconstruction

Examples

Run this code
if (FALSE) {
# Using default method
x <- rnorm(100)
s1 <- stateSpaceMethod(x, E=3, tau=2)

# Using custom method
custom_space <- function(x, E, tau) {
  list(matrix=embed(x, E))
}
s2 <- stateSpaceMethod(x, E=3, tau=2, method=custom_space)
}

Run the code above in your browser using DataLab