Commandline Recurrence PlotsVersion: 1.13z (Last mod: 2006-03-08) DescriptionThis professional scientific software computes recurrence plots, cross recurrence plots, joint recurrence plots and recurrence quantification analysis on commandline of Unix and DOS/DOS-emulated systems. It is able to work with really long data series. However, the output of the results (plots) have to be prepared with external programmes (e.g. gnuplot or Matlab). The state space trajectory can be reconstructed from single time-series by time-delay embedding. Alternatively, the columns of input data can be used as the components of the state space vectors. More information about recurrence based methods can be found on the recurrence plot web site. Currently the following RQA measures will be computed:
This software will be further improved. UsageThe general usage is rp -i data_file or ./rp -i data_file (in Unix systems if the programme is in the same folder) You can specify embedding parameters dimension and delay, the recurrence threshold, Theiler corrector and the minimal lengths for diagonal and vertical lines by adding the corresponding options. Instead of embedding, the columns of input data can be used as the components of the state space vectors. Note that then the dimension is automatically given by the numbers of the columns, i. e. it is not necessary to use the option -m. Any additional embedding dimension specified by this option would mean an addtional embedding (e. g., 3 columns and an embedding of 2 would result in a 6-dimensional phase space). Moreover, check the successful import of the columns by looking at the first line of the output, where it is clearly stated how many columns were read. (Cross/joint) recurrence plot and RQA results can be stored in ASCII files with options -r and -o, respectively. The (cross/joint) recurrence plot file contains the coordinates of recurrence points.
For example: rp -i soi.dat -r rp.dat -o rqa.dat -e 0.1 -m 3 -t 9 will compute a recurrence plot of the data stored in file soi.dat, by using an embedding of dimension 3, a delay 9 and a recurrence threshold of 0.1. The resulting recurrence plot is stored in file rp.dat and the RQA measures are stored in file rqa.dat.
rp -i os1 -j os2 -r rp.tif -f TIF -J -e 0.1 -w 0 will yield the joint recurrence plot between data os1 and os2 without embedding as a TIFF image rp.tif. The Theiler window is set to zero in order to get also the main diagonal line in the joint recurrence plot. A negative threshold value computes the distance matrix instead of the binary recurrence matrix: rp -i lorenz.dat -r rp.dat -e -1 -w 0 (where the three components of the Lorenz-system form three columns in file lorenz.dat) will yield the distance matrix of the phase space trajectory defined by the three-dimensional system given in lorenz.dat. Using the option -n OP, an order patterns recurrence plot is created: rp -i lorenz.dat -r rp.dat -n OP -m 3 -t 7 Visualization of the recurrence plot from ASCII data for example with Matlab:
RP=load('rp.dat'); or
RP=load('rp.dat'); More examples can be found in Sect. "Tips"! TipsPossible maximal data length For RQA, the possible data length can be maximized by calculating only the RQA measures without creating the recurrence plot. Windowed RQA Calculating the RQA in small windows (for detecing transitions) can be done by using a script. For example in Matlab:
% import some data Please note that under a MS Windows operating system, you have to call the external programme by
dos('rp -i temp_data -s -m 3 -t 5 -e 0.7 -o rqa.dat'); or in a bash:
# define data file Plot RQA measures RQA measures will be added to the same file, if it exists (see example above), hence, an existing RQA file will not be replaced. This allows us to compute several data sets and to store the results in only one file, or to compute windowed RQA measures (e.g. for detecting transitions), respectively. However, this requires to delete an already existing rqa file or to use a new file name for the rqa file, if the RQA measures should not be added to the existing file. Import and plot RQA measures with Matlab:
% import RQA measures The columns in the RQA output are
LicenseWarningI give no warranty for the programme and the results obtained from using this programme. It lies in the responsibility of the user to check the results. ScreenshotDownloadIt is recommended to rename the downloaded file to rp (except for Windows, where it should be rp.exe).
Don't forget to make the file executable under the Unix systems (OSF, Linux, OS X) with the command chmod a+x rp Version History
Bugs/ ProblemsPlease send me bug reports or if any problem occured. The TIFF-output in the Dos/Win version may fail. Please note that the TIFF image contains 16bit values. Ensure that the image viewer you are using is able to display 16bit images. ContactNorbert Marwan, Potsdam, Germany last changes: Mon, 28 Sep 2009 16:41:04 CEST
|