Skip to content

Commit 11d4a69

Browse files
committed
Fix bug in takens estimator
1 parent 5b5f4e9 commit 11d4a69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ Reexport = "1"
3030
Roots = "1, 2"
3131
Scratch = "1"
3232
SpecialFunctions = "1, 2"
33-
StateSpaceSets = "2"
33+
StateSpaceSets = "2.4"
3434
Statistics = "1"
3535
julia = "1.5"

src/corrsum_based/takens_best_estimate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ the values of `Δ_C` where the function has fallen by 2 from its maximum, see e.
5353
takens_best_estimate_dim(args...) = takens_best_estimate(args...)[1]
5454

5555
function takens_best_estimate(X, εmax, metric = Chebyshev(); εmin=0)
56-
n, η, N = 0, zero(eltype(X)), length(X)
56+
n, η, N = 0, zero(eltype(eltype(X))), length(X)
5757
@inbounds for i in 1:N
5858
for j in i+1:N
5959
d = evaluate(metric, X[i], X[j])

0 commit comments

Comments
 (0)