Theiler window

Share:

Description

Remove recurrent points on the main diagonal, and parallel diagonals, as specified by the window parameter.

Usage

1
 theiler(S, tw) 

Arguments

S

A binary matrix representing a recurrent plot

tw

The size of the theiler window.

Details

The default value of the window parameter is 0. A value of 1 would remove the points along the main diagonal. A value of 2 would remove the points along the main diagonal, as well as the point of the bands +|- 1 around it.

Value

A sparse matrix with recurrent points removed as specified by the window parameter.

Author(s)

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

Examples

1
2
3
4
5
## build a random x matrix
r = 100; c = 100; tw = 1
S = round(matrix(runif(r*c), r, c))

ans = theiler(S, tw)