Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kahaaga committed Aug 2, 2024
1 parent bd8a063 commit dd908c9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/methods/correlation/azadkia_chatterjee_coefficient.jl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,26 @@ function AzadkiaChatterjeeCoefficient(inputs...; theiler::Integer = 0)
@assert 2 length(inputs) 3
ns = length.(inputs)
@assert allequal(ns)
m = length(inputs)
n = length(first(inputs))
sorted_ys = sort(first(inputs))

r = zeros(Int, n)

if n == 3
if m == 2
r = zeros(Int, n)
Mᵢs = zeros(Int, n)
Nᵢs = nothing
RMᵢs = zeros(Int, n)
RNᵢs = nothing
𝓁 = nothing
else # n == 2
𝓁 = zeros(Int, n)
else # m == 3
r = zeros(Int, n)
Mᵢs = zeros(Int, n)
Nᵢs = zeros(Int, n)
RMᵢs = zeros(Int, n)
RNᵢs = zeros(Int, n)
𝓁 = zeros(Int, n)
𝓁 = nothing
end

return AzadkiaChatterjeeCoefficient(sorted_ys, 𝓁, r, Mᵢs, Nᵢs, RMᵢs, RNᵢs, theiler)
Expand Down

0 comments on commit dd908c9

Please sign in to comment.