-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CompatHelper: bump compat for StateSpaceSets to 2, (keep existing com…
…pat) (#426) * CompatHelper: bump compat for StateSpaceSets to 2, (keep existing compat) * use v2 exclusively * bump project version * fix approx entr argumenterror * make `codify` do what was promised * typing * fix doc compat * fix entropy sample problem (?) * stop rounding 0 to 0... * FIX DOCS ERROR --------- Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: Datseris <[email protected]>
- Loading branch information
1 parent
ba9849b
commit fd2a5eb
Showing
11 changed files
with
61 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name = "ComplexityMeasures" | |
uuid = "ab4b797d-85ee-42ba-b621-05d793b346a2" | ||
authors = "Kristian Agasøster Haaga <[email protected]>, George Datseries <[email protected]>" | ||
repo = "https://github.com/juliadynamics/ComplexityMeasures.jl.git" | ||
version = "3.6.6" | ||
version = "3.7.0" | ||
|
||
[deps] | ||
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" | ||
|
@@ -32,10 +32,10 @@ Neighborhood = "0.2.4" | |
QuadGK = "2.9" | ||
Reexport = "1" | ||
SpecialFunctions = "0.10, 1.0, 2" | ||
StateSpaceSets = "1.0.4" | ||
StateSpaceSets = "2.1" | ||
StaticArrays = "0.12, 1.0" | ||
Statistics = "1" | ||
StatsBase = "0.33, 0.34" | ||
StatsFuns = "1.3" | ||
Wavelets = "0.10" | ||
Wavelets = "0.9, 0.10" | ||
julia = "1.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
using ComplexityMeasures | ||
using ComplexityMeasures, Test | ||
|
||
@test_throws UndefKeywordError SampleEntropy() | ||
|
||
# Analytical examples seem to be lacking in the literature. As a next-best-test, | ||
# we just check that we get a sample entropy sufficiently close to zero for a completely | ||
# regular signal. | ||
N = 6000 | ||
c = SampleEntropy(m = 2, τ = 1, r = 0.1) | ||
x = repeat([-5:5 |> collect; 4:-1:-4 |> collect], N ÷ 20); | ||
@test round(complexity(c, x), digits = 3) == round(0.0, digits = 3) | ||
@test round(complexity_normalized(c, x), digits = 3) == round(0.0, digits = 3) | ||
x = repeat([-5.0:5 |> collect; 4.0:-1:-4 |> collect], N ÷ 20); | ||
@test round(complexity(c, x), digits = 3) == 0.0 | ||
@test round(complexity_normalized(c, x), digits = 3) == 0.0 | ||
|
||
# Conversely, a non-regular signal should result in a sample entropy | ||
# greater than zero. | ||
x = rand(N) | ||
@test round(complexity(c, x), digits = 2) > round(0.0, digits = 2) | ||
@test round(complexity_normalized(c, x), digits = 2) > round(0.0, digits = 2) | ||
@test round(complexity(c, x), digits = 2) > 0.0 | ||
@test round(complexity_normalized(c, x), digits = 2) > 0.0 | ||
|
||
# Automatically deducing radius | ||
@test round(complexity(SampleEntropy(x, m = 2, τ = 1), x), digits = 2) > round(0.0, digits = 2) | ||
@test round(complexity(SampleEntropy(x, m = 2, τ = 1), x), digits = 2) > 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters