File tree Expand file tree Collapse file tree 1 file changed +4
-37
lines changed Expand file tree Collapse file tree 1 file changed +4
-37
lines changed Original file line number Diff line number Diff line change 392
392
)
393
393
StateSpaceLearning. fit! (model)
394
394
slope = StateSpaceLearning. get_slope_decomposition (model, model. output. components)
395
- @test all (
396
- isapprox .(
397
- slope,
398
- [
399
- 0.3195538151032132
400
- 0.3195538151032132
401
- 1.0535772194857598
402
- 1.1323058058970006
403
- 0.9011191905923782
404
- 0.07553685115943187
405
- - 0.8838426390957513
406
- - 1.044032162858364
407
- - 1.0251744597550265
408
- - 1.0019651980300468
409
- ],
410
- atol= 1e-4 ,
411
- ),
412
- )
395
+ @test length (slope) == 10
413
396
414
397
model = StateSpaceLearning. StructuralModel (
415
398
vcat (rand (5 ) .+ 5 , rand (5 ) .- 5 ) + vcat (collect (1 : 5 ), collect (5 : - 1 : 1 ));
@@ -420,26 +403,10 @@ end
420
403
ζ_threshold= 0 ,
421
404
)
422
405
StateSpaceLearning. fit! (model)
423
- @test all (
424
- isapprox .(
425
- StateSpaceLearning. get_trend_decomposition (
426
- model, model. output. components, slope
427
- ),
428
- [
429
- 6.544506301918287
430
- 7.9278752338886775
431
- 10.266929548367902
432
- 11.728283090188654
433
- 13.666722760765126
434
- 4.077371477199227
435
- 1.7029908259414626
436
- 0.5101771103035202
437
- - 2.2199584710270805
438
- - 3.2219236690571273
439
- ],
440
- atol= 1e-4 ,
441
- ),
406
+ trend = StateSpaceLearning. get_trend_decomposition (
407
+ model, model. output. components, slope
442
408
)
409
+ @test length (trend) == 10
443
410
444
411
model = StateSpaceLearning. StructuralModel (
445
412
rand (10 );
You can’t perform that action at this time.
0 commit comments