Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
02d69876
Commit
02d69876
authored
Jan 23, 2012
by
Stéphane Adjemian
Browse files
Fixed bug in EP algorithm.
parent
919c2f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/ep/extended_path.m
View file @
02d69876
...
...
@@ -230,15 +230,13 @@ while (t<sample_size)
end
% Test if periods is big enough.
delta
=
0
;
if
~
isempty
(
idx
)
delta
=
max
(
max
(
abs
(
tmp
(
idx
,
end
-
options_
.
ep
.
lp
:
end
)
.
/
tmp
(
idx
,
...
end
-
options_
.
ep
.
lp
-
1
:
end
-
1
)
-
1
)));
end
;
if
~
isempty
(
indx
)
delta
=
max
(
delta
,
max
(
max
(
abs
(
tmp
(
indx
,
end
-
options_
.
ep
.
lp
:
...
end
)
-
tmp
(
indx
,
end
-
options_
.
ep
.
lp
-
1
:
end
-
1
)))));
if
length
(
tmp
)
>
1
&&
~
isempty
(
idx
)
delta
=
max
(
max
(
abs
(
tmp
(
idx
,
end
-
options_
.
ep
.
lp
:
end
)
.
/
tmp
(
idx
,
end
-
options_
.
ep
.
lp
-
1
:
end
-
1
)
-
1
)));
end
if
~
increase_periods
&&
delta
<
options_
.
dynatol
.
x
if
length
(
tmp
)
>
1
&&
~
isempty
(
indx
)
delta
=
max
(
delta
,
max
(
max
(
abs
(
tmp
(
indx
,
end
-
options_
.
ep
.
lp
:
end
)
-
tmp
(
indx
,
end
-
options_
.
ep
.
lp
-
1
:
end
-
1
)))));
end
if
~
increase_periods
&&
delta
<
options_
.
dynatol
.
x
break
else
options_
.
periods
=
options_
.
periods
+
options_
.
ep
.
step
;
...
...
Write
Preview
Supports
Markdown
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