Skip to content

Commit

Permalink
Put sumR in determinism and laminarity docstrings (#66)
Browse files Browse the repository at this point in the history
* Put sumR in determinism and laminarity docstrings

* move tests to 1

* change to 1.1
  • Loading branch information
Datseris authored Jan 27, 2019
1 parent 05ca7b1 commit e1c07d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: julia
os:
- linux
julia:
- 1.0
- 1.1
# - nightly
branches:
- only:
Expand Down
10 changes: 6 additions & 4 deletions src/rqa.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Calculate the recurrence rate of the recurrence matrix `R`.
The recurrence rate is calculated as:
```math
RR = \\frac{1}{S} \\sum_{i,j} R[i,j]
RR = \\frac{1}{S} \\sum R
```
where *S* is the size of `R` or the region of `R` with potential recurrent points.
where ``S`` is the size of `R` or the region of `R` with potential recurrent points.
There is not a unique definition of that denominator, which is defined as the
full size of the matrix in many sources (e.g. [1]), whereas
in others it is adjusted to remove the points of the LOI when they are
Expand Down Expand Up @@ -139,7 +139,8 @@ Calculate the determinism of the recurrence matrix `R`:
The determinism is calculated as:
```math
DET = \\frac{\\sum_{l=lmin}{l P(l)}}{\\sum_{l=1}{l P(l)}}
DET = \\frac{\\sum_{l=lmin}{l P(l)}}{\\sum_{l=1}{l P(l)}} =
\\frac{\\sum_{l=lmin}{l P(l)}}{\\sum R}
```
where ``l`` stands for the lengths of diagonal lines in the matrix, and ``P(l)``
Expand Down Expand Up @@ -274,7 +275,8 @@ Calculate the laminarity of the recurrence matrix `R`.
The laminarity is calculated as:
```math
LAM = \\frac{\\sum_{v=lmin}{v P(l)}}{\\sum_{v=1}{v P(v)}}
LAM = \\frac{\\sum_{v=lmin}{v P(l)}}{\\sum_{v=1}{v P(v)}} =
\\frac{\\sum_{v=lmin}{v P(l)}}{\\sum R}
```
where ``v`` stands for the lengths of vertical lines in the matrix, and ``P(v)``
Expand Down

0 comments on commit e1c07d6

Please sign in to comment.