From 3a0b3cfd572a2f7a5a94f7dc7789557bb5a842b9 Mon Sep 17 00:00:00 2001 From: Shayan Date: Tue, 12 Mar 2024 19:24:08 +0330 Subject: [PATCH] =?UTF-8?q?[cepstral.jl]=20`=3D=3D`=20replaced=20by=20`?= =?UTF-8?q?=E2=89=88`=20=20=F0=9F=94=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/cepstral.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cepstral.jl b/test/cepstral.jl index 66e8189..d9b075c 100644 --- a/test/cepstral.jl +++ b/test/cepstral.jl @@ -8,7 +8,7 @@ vals = [ @testset "cepstral.jl" begin @testset "ARMACepstral" begin - @test (cc(ARMACepstral(1., (1, 1)), series, 5) == [-0.6231197903689889, -0.01564051553647603, -0.005955402230438618, -0.0027120968883413143, -0.0015279908018555185]) + @test (cc(ARMACepstral(1., (1, 1)), series, 5) ≈ [-0.6231197903689889, -0.01564051553647603, -0.005955402230438618, -0.0027120968883413143, -0.0015279908018555185]) @test isapprox(cc(ARMACepstral(1., (1, 1)), vals, 5), [ -1.03522 -2.168 -2.28113 -0.0172828 0.00615351 0.00264155 @@ -18,8 +18,8 @@ vals = [ end @testset "ARCepstral" begin - @test (cc(ARCepstral(1), series, 5) == [0.5686327103717447, 0.16167157965235823, 0.06128783235186792, 0.026137699667288815, 0.011890200803754471]) - @test (cc(ARCepstral(2), series, 5) == [0.5061405677355508, -0.08265600639423334, -0.06344592753639652, -0.015374742371503975, 0.0017971279975581714]) + @test (cc(ARCepstral(1), series, 5) ≈ [0.5686327103717447, 0.16167157965235823, 0.06128783235186792, 0.026137699667288815, 0.011890200803754471]) + @test (cc(ARCepstral(2), series, 5) ≈ [0.5061405677355508, -0.08265600639423334, -0.06344592753639652, -0.015374742371503975, 0.0017971279975581714]) @test isapprox(cc(ARCepstral(1), vals, 5), [ 0.239323 0.276995 0.26709 0.0286378 0.0383632 0.0356686 0.00456913 0.00708428 0.00635116 @@ -28,8 +28,8 @@ vals = [ end @testset "RealCepstral" begin - @test (cc(RealCepstral(), series, 5) == [0.03700275546236409, 0.0867638177224842, 0.38225344455973626, -0.03467668552262836, 0.10502390427503827]) - @test (cc(RealCepstral(), series, 5, normalize=true) == [-2.482417812401184, -3.5121897532599697, -3.2167001264227184, -3.633630256505082, -3.493929666707416]) + @test (cc(RealCepstral(), series, 5) ≈ [0.03700275546236409, 0.0867638177224842, 0.38225344455973626, -0.03467668552262836, 0.10502390427503827]) + @test (cc(RealCepstral(), series, 5, normalize=true) ≈ [-2.482417812401184, -3.5121897532599697, -3.2167001264227184, -3.633630256505082, -3.493929666707416]) @test isapprox(cc(RealCepstral(), vals, 5), [ -0.65022 -0.198637 0.113368 0.342659 0.0145222 0.152945 0.341224 0.174512 0.0952615