Skip to content

Commit 98ba9b6

Browse files
committed
Formatter
1 parent ecfe977 commit 98ba9b6

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

examples/gaussian-process/script.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,14 @@ function GaussianProcessStateSpaceModel(::Type{T}, kernel::KT) where {T<:Real,KT
5252
end
5353

5454
const GPSSM{T,KT<:Kernel} = SSMProblems.StateSpaceModel{
55-
<:GaussianPrior,
56-
<:GaussianProcessDynamics{T,KT},
57-
StochasticVolatility
55+
<:GaussianPrior,<:GaussianProcessDynamics{T,KT},StochasticVolatility
5856
};
5957

6058
# for non-markovian models, we can redefine dynamics to reference the trajectory
61-
function AdvancedPS.dynamics(
62-
ssm::AdvancedPS.TracedSSM{<:GPSSM}, step::Int
63-
)
59+
function AdvancedPS.dynamics(ssm::AdvancedPS.TracedSSM{<:GPSSM}, step::Int)
6460
prior = ssm.model.dyn.proc(1:(step - 1))
65-
post = posterior(prior, ssm.X[1:(step - 1)])
66-
μ, σ = mean_and_cov(post, [step])
61+
post = posterior(prior, ssm.X[1:(step - 1)])
62+
μ, σ = mean_and_cov(post, [step])
6763
return LinearGaussianDynamics(0, μ[1], sqrt(σ[1]))
6864
end
6965

examples/levy-ssm/script.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ function SSMProblems.distribution(proc::LevyLangevin, step::Int, state)
8888
return MvNormal(exp(proc.dyn, dt) * state + μ, Σ)
8989
end
9090

91-
struct LinearGaussianObservation{HT<:AbstractVector,RT<:Real} <: SSMProblems.ObservationProcess
91+
struct LinearGaussianObservation{HT<:AbstractVector,RT<:Real} <:
92+
SSMProblems.ObservationProcess
9293
H::HT
9394
R::RT
9495
end

0 commit comments

Comments
 (0)