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
# NOT RUN {## build a random x matrixr = 100; c = 100x = round(matrix(runif(r*c), r, c))
whiteline = TRUEminvertline = 2
ans = tt(x, minvertline, whiteline)
# }