Skip to content

Commit

Permalink
Add Markov Kernel things to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Oct 30, 2023
1 parent f3cff2c commit 5d4e569
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 29 deletions.
8 changes: 7 additions & 1 deletion docs/src/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ ProbNumDiffEq.update!

```@docs
ProbNumDiffEq.smooth
ProbNumDiffEq.smooth!
```

## Markov Kernels
```@docs
ProbNumDiffEq.AffineNormalKernel
ProbNumDiffEq.marginalize!
ProbNumDiffEq.compute_backward_kernel!
```
28 changes: 0 additions & 28 deletions test/core/filtering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -319,34 +319,6 @@ end
@test m_smoothed x_out.μ
@test P_smoothed Matrix(x_out.Σ)
end
@testset "smooth!" begin
_d = d
x_curr_psd = Gaussian(m, PSDMatrix(P_R)) |> copy
x_next_psd = Gaussian(m_s, PSDMatrix(P_s_R)) |> copy
cache = if !KRONECKER
(x_pred=copy(x_curr_psd),
G1=zeros(_d, _d),
C_DxD=zeros(_d, _d),
C_2DxD=zeros(2_d, _d),
C_3DxD=zeros(3_d, _d))
else
(x_pred=copy(x_curr_psd),
G1=IsometricKroneckerProduct(K, zeros(_d, _d)),
C_DxD=IsometricKroneckerProduct(K, zeros(_d, _d)),
C_2DxD=IsometricKroneckerProduct(K, zeros(2_d, _d)),
C_3DxD=IsometricKroneckerProduct(K, zeros(3_d, _d)))
end
ProbNumDiffEq.smooth!(
x_curr_psd,
x_next_psd,
A,
Q_SR,
cache,
)
@test m_smoothed x_curr_psd.μ
@test P_smoothed Matrix(x_curr_psd.Σ)
end

@testset "smooth via backward kernels" begin
K_forward = ProbNumDiffEq.AffineNormalKernel(copy(A), copy(Q_SR))
K_backward = ProbNumDiffEq.AffineNormalKernel(
Expand Down

0 comments on commit 5d4e569

Please sign in to comment.