Skip to content

Commit 2bd97f0

Browse files
authored
Bug fix pecuzal kwa (#80)
* fixed tests w.r.t. deprecations in Peaks * removed typo in key-word argument; revised test * version increment; changelog
1 parent 9f265fe commit 2bd97f0

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.20.1
2+
* Patch for correct keyword arguments in PECUZAL algorithm
3+
14
# v1.20.0
25
* Revised version of PECUZAL algorithm, now tracking maximal L-decrease
36

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DelayEmbeddings"
22
uuid = "5732040d-69e3-5649-938a-b6b4f237613f"
33
repo = "https://github.com/JuliaDynamics/DelayEmbeddings.jl.git"
4-
version = "1.20.0"
4+
version = "1.20.1"
55

66
[deps]
77
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"

src/unified_de/pecuzal.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ function pecuzal_embedding(s::Vector{T}; τs = 0:50 , w::Int = 1,
129129
end
130130

131131
function pecuzal_embedding(Y::Dataset{D, T}; τs = 0:50 , w::Int = 1,
132-
samplesize::Real = 1, K::Int = 13, KNN::Int = 3, threshold::Real = 0,
132+
samplesize::Real = 1, K::Int = 13, KNN::Int = 3, L_threshold::Real = 0,
133133
α::Real = 0.05, p::Real = 0.5, max_cycles::Int = 50, econ::Bool = false
134134
) where {D, T<:Real}
135135

136136
@assert 0 < samplesize 1 "Please select a valid `samplesize`, which denotes a fraction of considered fiducial points, i.e. `samplesize` ∈ (0 1]"
137137
@assert all(x -> x 0, τs)
138-
@assert threshold 0
139-
threshold = -threshold # due to the negativity of L-decrease
138+
@assert L_threshold 0
139+
threshold = -L_threshold # due to the negativity of L-decrease
140140
metric = Euclidean()
141141

142142
Y_orig = Y

test/test_pecuzal_embedding.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ end
6767
@test -0.015 < Ls[4] < -0.014
6868

6969
@time Y, τ_vals, ts_vals, Ls , ε★ = pecuzal_embedding(tr[1:5000,:];
70-
τs = 0:Tmax , w = w, econ = true, threshold = 0.2)
70+
τs = 0:Tmax , w = w, econ = true, L_threshold = 0.2)
7171
@test -0.9338 < Ls[1] < -0.9337
7272
@test -0.356 < Ls[2] < -0.355
7373
@test size(Y,2) == 3

0 commit comments

Comments
 (0)