Skip to content

Commit 8fe8f37

Browse files
committed
Update benchmarks in Windows and documentation
[ci skip]
1 parent 81c20f8 commit 8fe8f37

File tree

6 files changed

+63
-27
lines changed

6 files changed

+63
-27
lines changed

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# RecurrenceAnalysis.jl News
22

3+
## 30-06-2018 - commit ea915e9
4+
5+
* Break compatibility with 0.6
6+
* Breaking modifications of RQA functions, in order to match the outputs of
7+
**crqa** (R) and **CRPToolbox** (Matlab):
8+
- The denominator of RR is fixed to N<sup>2</sup>.
9+
- Theiler window added to the calculation of LAM and TT.
10+
- Theiler window defaults to 0 in all functions.
11+
* Bugfix in the calculation of diagonal structures
12+
313
## 23-06-2018 - v0.2.0
414

515
* Update to support Julia 0.6-0.7 (breaking compatibility with 0.5).

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,17 @@ Some functions can be tuned with options passed as keyword arguments:
8888

8989
Note: In order to keep the functions simpler and avoid confusion with the scaling of the distances, there is no option to normalize the input, although that is a customary procedure in RQA. This can be done *prior* to using the functions of this package.
9090

91-
The function `rqa` also accepts all those keyword arguments, which are passed down to the corresponding elementary functions. That function also accepts specific values for the Theiler window and the minimum length of recurrent structures, which are applied only in the calculation of some parameters:
91+
The function `rqa` also accepts all those keyword arguments, which are passed down to the corresponding elementary functions. That function also accepts other keyword arguments for the Theiler window and the minimum length of recurrent structures, which are applied only in the calculation of some parameters:
9292

9393
* `theilerdiag` overrides `theiler` in the calculation of parameters related to diagonal structures, i.e. DET, L, Lmax, DIV, ENT and TND.
9494
* `theilervert` overrides `theiler` in the calculation of parameters related to vertical structures, i.e. LAM, TT and Vmax.
9595
* `lmindiag` overrides `lmin` in the calculation of parameters related to diagonal structures.
9696
* `lminvert` overrides `vmin` in the calculation of parameters related to vertical structures.
9797

98+
### Comparison with other RQA software packages
99+
100+
After version 0.2.0 some RQA methods and the defaults of their options have been changed to make their results comparable with those provided by other software packages. Look at the [News](NEWS.md) of this package for details.
101+
98102
## Auxiliary functions
99103

100104
**Functions to estimate the optimal delay for a time series:**
@@ -146,7 +150,7 @@ In some cases, specially with very long time series, it may be suitable to perfo
146150
```julia
147151
@windowed determinism(rmat, theiler=2, lmin=3) width=1000 step=100
148152
```
149-
will return a 91-element vector, such that each value is the determinism associated to a 1000-point fragment, starting at every 100 points (i.e. at `1`, `101`, &ldots; `9001`).
153+
will return a 91-element vector, such that each value is the determinism associated to a 1000-point fragment, starting at every 100 points (i.e. at `1`, `101`, &hellip; `9001`).
150154

151155
The general syntax of that macro is:
152156
```julia
@@ -159,7 +163,7 @@ where:
159163
* `w` is the width of the window for relevant data around each point.
160164
* `s` is the step or distance between points where the calculations are done (starting in the first point).
161165

162-
To prevent syntax failures in the expansion of the macro, identify the RQA function (`rqa`, `recurrencerate`, `determinism`,&ldots;) directly by its name (avoid aliases), and use simple variable names (not complex expressions) for the arguments. On the other hand, the windowing options `w` and `s` can be given in any order. If `s` is ommitted, the calculations are done at every point, and the keyword `width` may be ommitted. (However, using `step=1` may be computationally very expensive, and that will provide just overly redundant results around each point, so it is advisable to set `step` a relatively big fraction of the window `width`.)
166+
To prevent syntax failures in the expansion of the macro, identify the RQA function (`rqa`, `recurrencerate`, `determinism`,&hellip;) directly by its name (avoid aliases), and use simple variable names (not complex expressions) for the arguments. On the other hand, the windowing options `w` and `s` can be given in any order. If `s` is ommitted, the calculations are done at every point, and the keyword `width` may be ommitted. (However, using `step=1` may be computationally very expensive, and that will provide just overly redundant results around each point, so it is advisable to set `step` a relatively big fraction of the window `width`.)
163167

164168
The value returned by the macro will normally be a vector with the same type of numbers as expected by `expr`. In the case of `@windowed rqa(...) ...`, it will return a dictionary with a similar structure as in the default `rqa` function, but replacing scalar values by vectors.
165169

@@ -200,4 +204,5 @@ In all four cases, the width parameter `w` might have been qualified with a keyw
200204
## To-do list:
201205

202206
* FAN method to define recurrence plots
207+
* Fast approximations to RQA
203208
* Recurrence Network analysis
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
Intel(R) Core(TM) i3-4100M CPU @ 2.50GHz, 8GiB SODIMM DDR3 1600 MHz, running Ubuntu 16.04-LTS
2+
3+
Software versions:
4+
Julia 0.7.0-beta2
5+
Python 2.7.12
6+
R 3.4.4
7+
8+
Package versions
9+
Julia: RecurrenceAnalysis commit 81c20f81add0d1c0e558874211415b0147ad2f79
10+
Pyunicorn 0.5.1
11+
R: crqa 1.0.7
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
1 1.85554 0.037921050773250475 0.9990689013035382 18.1864406779661 237 3.044979404476836 0.9548417132216015 3.8408239700374533
2-
2 6.242487 0.033777882289707066 0.9975136747886624 16.716666666666665 326 3.4088254760664225 0.9696668324216807 4.4042913608131
3-
3 15.756243 0.039923326062528915 0.9984363502575423 19.488330341113105 394 3.5923889991213565 0.9820180279617365 5.057555660824254
4-
4 34.343039 0.03625694569653658 0.9980786618444847 17.7865055387714 605 3.51945347751107 0.9823971518987342 5.162435040831477
5-
5 53.970349 0.035898747523886824 0.9981461286804798 18.041392904073586 605 3.585207869155881 0.9851872046528535 5.2050124831956985
6-
6 80.57940500000001 0.03365183113654758 0.9979063212991545 17.44580009385265 605 3.56908455971288 0.9843913568648504 5.21448883833357
7-
7 107.7413 0.03207263086944374 0.997811725846408 17.750275431509365 605 3.5821178605334514 0.9844756399669694 5.137685843568197
8-
8 148.686512 0.0326815014837516 0.9979870240473204 17.79431253451132 605 3.5866803854616194 0.9869543673835958 5.258735200693041
9-
9 194.17396 0.03285559924003383 0.9980675976227805 17.763789746917585 605 3.5935472394747543 0.9873664637036497 5.258009190343667
10-
10 247.395694 0.03333234251093351 0.9980710699261385 17.907304347826088 605 3.5959854774554074 0.9885185041583467 5.324570563358221
11-
11 388.51032200000003 0.033422155300425097 0.9980842453123877 17.81153846153846 605 3.5983414662419833 0.9881981528931887 5.331775700934579
12-
12 457.569498 0.034486002913931495 0.998194195442617 18.085206543485935 758 3.6108687203622942 0.9889573102606075 5.380358341873697
1+
1 2.146225 0.037921050773250475 0.9990689013035382 18.1864406779661 237 3.044979404476836 0.9548417132216015 3.8408239700374533
2+
2 8.848425 0.033777882289707066 0.9975136747886624 16.716666666666665 326 3.4088254760664225 0.9696668324216807 4.4042913608131
3+
3 18.194012999999998 0.039923326062528915 0.9984363502575423 19.488330341113105 394 3.5923889991213565 0.9820180279617365 5.057555660824254
4+
4 36.717054 0.03625694569653658 0.9980786618444847 17.7865055387714 605 3.51945347751107 0.9823971518987342 5.162435040831477
5+
5 70.49701 0.035898747523886824 0.9981461286804798 18.041392904073586 605 3.585207869155881 0.9851872046528535 5.2050124831956985
6+
6 88.071002 0.03365183113654758 0.9979063212991545 17.44580009385265 605 3.56908455971288 0.9843913568648504 5.21448883833357
7+
7 203.101432 0.03207263086944374 0.997811725846408 17.750275431509365 605 3.5821178605334514 0.9844756399669694 5.137685843568197
8+
8 161.343917 0.0326815014837516 0.9979870240473204 17.79431253451132 605 3.5866803854616194 0.9869543673835958 5.258735200693041
9+
9 205.18275699999998 0.03285559924003383 0.9980675976227805 17.763789746917585 605 3.5935472394747543 0.9873664637036497 5.258009190343667
10+
10 259.051803 0.03333234251093351 0.9980710699261385 17.907304347826088 605 3.5959854774554074 0.9885185041583467 5.324570563358221
11+
11 407.349629 0.033422155300425097 0.9980842453123877 17.81153846153846 605 3.5983414662419833 0.9881981528931887 5.331775700934579
12+
12 496.002316 0.034486002913931495 0.998194195442617 18.085206543485935 758 3.6108687203622942 0.9889573102606075 5.380358341873697
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
1 1.462215 0.0546218487394958 0.9941822882999354 17.477272727272727 237 3.1418178182603116 0.9786683904330963 4.791139240506329
2-
2 6.462543999999999 0.0507340096748186 0.9928819731832478 17.589442815249267 326 3.457144228473983 0.9864260883959609 5.600563909774436
3-
3 16.624396 0.057924075175711104 0.99416761759858 21.13477088948787 394 3.584723001745066 0.9917585900849499 6.481872798839859
4-
4 35.594252 0.05339171269812651 0.9934763421466671 18.6117900790798 605 3.5067202186814597 0.9895429602056871 6.538988208444275
5-
5 80.21868 0.05350622845226941 0.9932200082920762 19.467017208413 605 3.5822456987579514 0.9902202277882106 6.695580474934037
6-
6 80.707997 0.04999584489536363 0.9926466602829319 18.455492106147126 605 3.561546025430616 0.9887712515131258 6.645316009956894
7-
7 107.14710500000001 0.0479103131650072 0.9926616915422886 18.818181818181817 605 3.5455325123414814 0.9881633499170812 6.555744017603374
8-
8 147.936387 0.04866371265824322 0.9926375009099134 18.9319714399048 618 3.5566839780348767 0.9891954285951977 6.72658487430612
9-
9 189.31158200000002 0.04891623361532582 0.9926613443045827 19.08695652173913 672 3.5675789014948744 0.9894613965486277 6.740497706103156
10-
10 325.41742899999997 0.049507410489965986 0.9927755189944463 19.187941473259333 672 3.5779896835339424 0.9899823140528229 6.832755281293635
11-
11 379.082294 0.04962860714741156 0.9929256440029244 19.202411893128183 672 3.5813180475235864 0.9900657979615534 6.8379216246820995
12-
12 451.453491 0.051020010429939304 0.9932296263122539 19.575545171339563 758 3.588422583846597 0.9908784362280852 6.912188548063523
1+
1 1.9720520000000001 0.0546218487394958 0.9941822882999354 17.477272727272727 237 3.1418178182603116 0.9786683904330963 4.791139240506329
2+
2 6.638205 0.0507340096748186 0.9928819731832478 17.589442815249267 326 3.457144228473983 0.9864260883959609 5.600563909774436
3+
3 17.928678 0.057924075175711104 0.99416761759858 21.13477088948787 394 3.584723001745066 0.9917585900849499 6.481872798839859
4+
4 41.03154 0.05339171269812651 0.9934763421466671 18.6117900790798 605 3.5067202186814597 0.9895429602056871 6.538988208444275
5+
5 57.615433 0.05350622845226941 0.9932200082920762 19.467017208413 605 3.5822456987579514 0.9902202277882106 6.695580474934037
6+
6 86.09200799999999 0.04999584489536363 0.9926466602829319 18.455492106147126 605 3.561546025430616 0.9887712515131258 6.645316009956894
7+
7 118.104874 0.0479103131650072 0.9926616915422886 18.818181818181817 605 3.5455325123414814 0.9881633499170812 6.555744017603374
8+
8 161.263924 0.04866371265824322 0.9926375009099134 18.9319714399048 618 3.5566839780348767 0.9891954285951977 6.72658487430612
9+
9 208.309726 0.04891623361532582 0.9926613443045827 19.08695652173913 672 3.5675789014948744 0.9894613965486277 6.740497706103156
10+
10 346.636509 0.049507410489965986 0.9927755189944463 19.187941473259333 672 3.5779896835339424 0.9899823140528229 6.832755281293635
11+
11 410.849697 0.04962860714741156 0.9929256440029244 19.202411893128183 672 3.5813180475235864 0.9900657979615534 6.8379216246820995
12+
12 491.64889 0.051020010429939304 0.9932296263122539 19.575545171339563 758 3.588422583846597 0.9908784362280852 6.912188548063523
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz CPU, 4GB DDR3 RAM 1333 MHz, running Windows 10 Enterprise.
2+
3+
Software versions:
4+
Julia 0.7.0-beta2
5+
Matlab R2013b
6+
R 3.5.1
7+
8+
Package versions
9+
Julia: RecurrenceAnalysis commit 81c20f81add0d1c0e558874211415b0147ad2f79
10+
Matlab: CRPToolbox 5.22 (R32.2)
11+
R: crqa 1.0.7

0 commit comments

Comments
 (0)