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

1
 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

Details

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

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.

Author(s)

Moreno I. Coco (moreno.cocoi@gmail.com)

Examples

1
2
3
4
5
6
7
## 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)