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).
tt(x, minvertline, whiteline)
A binary matrix representing a recurrent plot
A minimum vertical length of recurrent points.
A logical flag to calculate (TRUE) or not (FALSE) empty vertical lines
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.
This function is based on MATLAB code
written by Norbert Marwan, available in crptoolbox
# 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 DataLab