@@ -15,6 +15,7 @@ const data_dir = joinpath(@__DIR__, "data")
15
15
const z0 = NPZ. npzread (joinpath (data_dir, " ic.npy" ))
16
16
const Yk_test = NPZ. npzread (joinpath (data_dir, " Yk.npy" ))
17
17
const full_test = NPZ. npzread (joinpath (data_dir, " full.npy" ))
18
+ const balanced_test = NPZ. npzread (joinpath (data_dir, " balanced.npy" ))
18
19
const dp5_test = NPZ. npzread (joinpath (data_dir, " dp5.npy" ))
19
20
const tp8_test = NPZ. npzread (joinpath (data_dir, " tsitpap8.npy" ))
20
21
@@ -23,10 +24,13 @@ const tp8_test = NPZ.npzread(joinpath(data_dir, "tsitpap8.npy"))
23
24
# ###############################################################################
24
25
Yk_comp = compute_Yk (l96, z0)
25
26
full_comp = similar (z0)
26
- full (full_comp, z0, l96, 0 )
27
+ full (full_comp, z0, l96, 0.0 )
28
+ balanced_comp = similar (z0[1 : l96. K])
29
+ balanced (balanced_comp, z0[1 : l96. K], l96, 0.0 )
27
30
@testset " unit testing" begin
28
31
@test isapprox (Yk_test, Yk_comp, atol= 1e-15 )
29
32
@test isapprox (full_test, full_comp, atol= 1e-15 )
33
+ @test isapprox (balanced_test, balanced_comp, atol= 1e-15 )
30
34
end
31
35
println (" " )
32
36
0 commit comments