diff --git a/src/methods/correlation/azadkia_chatterjee_coefficient.jl.jl b/src/methods/correlation/azadkia_chatterjee_coefficient.jl.jl index 8cdc7ec1..ab3ea24c 100644 --- a/src/methods/correlation/azadkia_chatterjee_coefficient.jl.jl +++ b/src/methods/correlation/azadkia_chatterjee_coefficient.jl.jl @@ -74,6 +74,12 @@ struct AzadkiaChatterjeeCoefficient{V, L, R, MI, NI, RM, RN} <: AssociationMeasu theiler::Int end +function Base.show(io::IO, m::AzadkiaChatterjeeCoefficient) + theiler = m.theiler + print(io, "AzadkiaChatterjeeCoefficient(; theiler = $theiler)") +end + + min_inputs_vars(::AzadkiaChatterjeeCoefficient) = 2 max_inputs_vars(::AzadkiaChatterjeeCoefficient) = 3 diff --git a/test/methods/correlation/azadkia_chatterjee_coefficient.jl b/test/methods/correlation/azadkia_chatterjee_coefficient.jl index ab2f475c..d5e6b800 100644 --- a/test/methods/correlation/azadkia_chatterjee_coefficient.jl +++ b/test/methods/correlation/azadkia_chatterjee_coefficient.jl @@ -7,4 +7,8 @@ y = rand(rng, n) z = rand(rng, n) m = AzadkiaChatterjeeCoefficient() @test association(m, x, y) isa Real -@test association(m, x, y, z) isa Real \ No newline at end of file +@test association(m, x, y, z) isa Real +# pretty printing +out = repr(AzadkiaChatterjeeCoefficient()) +@test occursin("AzadkiaChatterjeeCoefficient", out) +@test occursin("theiler = ", out) \ No newline at end of file