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
Johannes Pfeifer
dynare
Commits
f337c2b0
Commit
f337c2b0
authored
Sep 07, 2013
by
Stéphane Adjemian
Browse files
Fixed bugs (misuse of inputname function, as in commit #
4ce2c364
).
parent
6b237eb6
Changes
6
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDates/append.m
View file @
f337c2b0
...
...
@@ -55,7 +55,7 @@ if ~isa(dd,'dynDates')
end
if
~
(
isa
(
a
,
'
dynDate
'
)
||
isa
(
a
,
'
dynDates
'
)
||
ischar
(
a
))
error
([
'
dynDates
:
:
append
:
Input
argument
'
inputname
(
a
)
'
has
to
be
'
...
error
([
'
dynDates
:
:
append
:
Input
argument
'
inputname
(
2
)
'
has
to
be
'
...
'
a
dynDate
object
or
a
dynDates
object
or
a
string
(
formatted
date
).
'
])
end
...
...
matlab/@dynDates/pop.m
View file @
f337c2b0
...
...
@@ -51,7 +51,7 @@ function dd = pop(dd,a) % --*-- Unitary tests --*--
%
AUTHOR
(
S
)
stephane
DOT
adjemian
AT
univ
DASH
lemans
DOT
fr
if
~
isa
(
dd
,
'
dynDates
'
)
error
([
'
dynDates
:
:
pop
:
Input
argument
'
inputname
(
dd
)
'
has
to
be
a
dynDates
object
.
'
])
error
([
'
dynDates
:
:
pop
:
Input
argument
'
inputname
(
1
)
'
has
to
be
a
dynDates
object
.
'
])
end
if
nargin
<
2
...
...
@@ -62,7 +62,7 @@ if nargin<2
end
if
nargin
>
1
&&
~
(
isa
(
a
,
'
dynDate
'
)
||
ischar
(
a
))
error
([
'
dynDates
:
:
pop
:
Input
argument
'
inputname
(
a
)
'
has
to
be
a
dynDate
object
or
a
string
(
formatted
date
).
'
])
error
([
'
dynDates
:
:
pop
:
Input
argument
'
inputname
(
2
)
'
has
to
be
a
dynDate
object
or
a
string
(
formatted
date
).
'
])
end
if
~
isa
(
a
,
'
dynDate
'
)
...
...
matlab/@dynDates/sort.m
View file @
f337c2b0
...
...
@@ -47,7 +47,7 @@ function dd = sort(dd) % --*-- Unitary tests --*--
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
if
~
isa
(
dd
,
'
dynDates
'
)
error
([
'
dynDates
:
:
sort
:
Input
argument
'
inputname
(
dd
)
'
has
to
be
a
dynDates
object
.
'
])
error
([
'
dynDates
:
:
sort
:
Input
argument
'
inputname
(
1
)
'
has
to
be
a
dynDates
object
.
'
])
end
if
dd
.
ndat
==
1
...
...
matlab/@dynDates/unique.m
View file @
f337c2b0
...
...
@@ -47,7 +47,7 @@ function dd = unique(dd) % --*-- Unitary tests --*--
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
if
~
isa
(
dd
,
'
dynDates
'
)
error
([
'
dynDates
:
:
unique
:
Input
argument
'
inputname
(
dd
)
'
has
to
be
a
dynDates
object
.
'
])
error
([
'
dynDates
:
:
unique
:
Input
argument
'
inputname
(
1
)
'
has
to
be
a
dynDates
object
.
'
])
end
if
dd
.
ndat
==
1
...
...
matlab/particle/residual_resampling.m
View file @
f337c2b0
...
...
@@ -59,7 +59,7 @@ switch length(noise)
case
number_of_particles
kitagawa_resampling
=
0
;
otherwise
error
([
'
particle
:
:
resampling
:
Unknown
method
!
The
size
of
the
second
argument
(
'
inputname
(
noise
)
'
)
is
wrong
.
'
])
error
([
'
particle
:
:
resampling
:
Unknown
method
!
The
size
of
the
second
argument
(
'
inputname
(
3
)
'
)
is
wrong
.
'
])
end
%
Set
vectors
of
indices
.
...
...
matlab/particle/traditional_resampling.m
View file @
f337c2b0
...
...
@@ -66,7 +66,7 @@ switch length(noise)
case
number_of_particles
kitagawa_resampling
=
0
;
otherwise
error
([
'
particle
:
:
resampling
:
Unknown
method
!
The
size
of
the
second
argument
(
'
inputname
(
noise
)
'
)
is
wrong
.
'
])
error
([
'
particle
:
:
resampling
:
Unknown
method
!
The
size
of
the
second
argument
(
'
inputname
(
3
)
'
)
is
wrong
.
'
])
end
%
Get
the
empirical
CDF
.
...
...
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