Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bentriou Mahmoud
MarkovProcesses.jl
Commits
ed3f850c
Commit
ed3f850c
authored
Feb 18, 2021
by
Bentriou Mahmoud
Browse files
small fix in abc smc for ContinuousTimeModel
parent
af372d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
algorithms/_utils_abc.jl
View file @
ed3f850c
...
...
@@ -11,8 +11,8 @@ function _init_abc_automaton!(mat_p_old::Matrix{Float64}, vec_dist::Vector{Float
S
=
volatile_simulate
(
pm
,
vec_p
)
vec_dist
[
i
]
=
S
[
sym_var_aut
]
else
σ
=
simulate
(
pm
,
vec_p
)
vec_dist
[
i
]
=
func_dist
(
σ
,
l_obs
)
l_sim
=
[
simulate
(
pm
,
vec_p
)
for
i
=
1
:
length
(
l_obs
)]
vec_dist
[
i
]
=
func_dist
(
l_sim
,
l_obs
)
end
end
end
...
...
@@ -104,8 +104,8 @@ function _update_param!(mat_p::Matrix{Float64}, vec_dist::Vector{Float64},
S
=
volatile_simulate
(
pm
,
vec_p_prime
)
dist_sim
=
S
[
sym_var_aut
]
else
σ
=
simulate
(
pm
,
vec_p
)
dist_sim
=
func_dist
(
σ
,
l_obs
)
l_sim
=
[
simulate
(
pm
,
vec_p
_prime
)
for
i
=
1
:
length
(
l_obs
)]
dist_sim
=
func_dist
(
l_sim
,
l_obs
)
end
nbr_sim
+=
1
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment