Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericWantiez committed Oct 8, 2023
1 parent 58973b3 commit 806c10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/particle-gibbs/script.jl
Expand Up @@ -93,13 +93,13 @@ plot(x; label="x", xlabel="t")
plot(y; label="y", xlabel="t")


# Each model takes an `AbstractRNG` as input and generates the logpdf of the current transition:
mutable struct NonLinearTimeSeries <: AdvancedPS.AbstractGenericModel
X::Array
θ::Parameters
NonLinearTimeSeries::Parameters) = new(zeros(Float64, θ.T), θ)
end

# Each model takes an `AbstractRNG` as input and generates the logpdf of the current transition:
function (model::NonLinearTimeSeries)(rng::Random.AbstractRNG)
x₀ = rand(rng, f₀(model.θ))
model.X[1] = x₀
Expand Down

0 comments on commit 806c10a

Please sign in to comment.