Learn R Programming

KarsTS (version 2.4.1)

genRmExample: A function to generate a recurrence matrix example

Description

A function to generate a recurrence matrix example. It can be assigned to the KTSEnv environment.

Usage

genRmExample(name = "SRM", InKTSEnv = TRUE, plotRM = FALSE)

Arguments

name

A name for the recurrence matrix. When the local environment is used instead of KTSEnv, the name is still necessary for the recurrence plot title.

InKTSEnv

Assign the output to the KTSEnv (TRUE) or to the local environment (FALSE)

plotRM

Plot the recurrence matrix (TRUE) or not (FALSE)

Value

The recurrence matrix and the time series

Details

The recurrence matrix is calculated on a sinusoidal time series composed with a random walk. The embedding dimension is 2, the delay is 290 and the threshold is 20.

Examples

Run this code
# NOT RUN {
 res <- genRmExample(name = "RMExample", InKTSEnv = FALSE, plotRM = FALSE)
 res$newSimpRM
 res$TS
# }

Run the code above in your browser using DataLab