Skip to content

Commit

Permalink
[cepstral.jl] == replaced by 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
shayandavoodii committed Mar 12, 2024
1 parent 0ed8d2d commit 3a0b3cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/cepstral.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3a0b3cf

Please sign in to comment.