Skip to content

Commit

Permalink
Correct obs
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericWantiez committed Dec 11, 2023
1 parent decdc45 commit 2902fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/levy-ssm/gamma_process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dyn = LangevinDynamics(A, L, θ, H, σe)
start, finish = 0, 100
N = 200
ts = range(start, finish; length=N)
seed = 1
seed = 4
rng = Random.MersenneTwister(seed)
Np = 10
Ns = 10
Expand Down Expand Up @@ -161,7 +161,7 @@ function AdvancedPS.transition(model::LevyLangevin, state, step)
end

function AdvancedPS.observation(model::LevyLangevin, state, step)
return logpdf(Normal(transpose(H) * X[step, :], σe), Y[step])
return logpdf(Normal(transpose(H) * state, σe), Y[step])
end
AdvancedPS.isdone(::LevyLangevin, step) = step > length(ts)

Expand Down

0 comments on commit 2902fa6

Please sign in to comment.