crqa (version 1.0.6)

tt: Trapping-Time

Description

Extract vertical lines from a recurrence plot on which it calculates laminarity (the percentage of recurrence points which form vertical lines), and trapping-time (the mean length of vertical lines).

Usage

tt(x, minvertline, whiteline)

Arguments

x

A binary matrix representing a recurrent plot

minvertline

A minimum vertical length of recurrent points.

whiteline

A logical flag to calculate (TRUE) or not (FALSE) empty vertical lines

Value

A list with four variables: TT (The average length of vertical line structures), lam (proportion of recurrent points forming vertical line structures), tw (vertically consecutive white points|lines) and tb (vertically consecutive black points|lines). If whiteline = FALSE, tw = NA.

Details

This function is based on MATLAB code written by Norbert Marwan, available in crptoolbox

Examples

Run this code
# NOT RUN {
## build a random x matrix
r = 100; c = 100
x = round(matrix(runif(r*c), r, c))
whiteline = TRUE
minvertline = 2

ans = tt(x, minvertline, whiteline)

# }

Run the code above in your browser using DataCamp Workspace