Fixed bugs (misuse of inputname function, as in commit #4ce2c3644af333733d802383559de8c0340213bd).
parent
6b237eb6c2
commit
f337c2b072
|
@ -55,7 +55,7 @@ if ~isa(dd,'dynDates')
|
||||||
end
|
end
|
||||||
|
|
||||||
if ~(isa(a,'dynDate') || isa(a,'dynDates') || ischar(a))
|
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).'])
|
'a dynDate object or a dynDates object or a string (formatted date).'])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ function dd = pop(dd,a) % --*-- Unitary tests --*--
|
||||||
% AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
|
% AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
|
||||||
|
|
||||||
if ~isa(dd,'dynDates')
|
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
|
end
|
||||||
|
|
||||||
if nargin<2
|
if nargin<2
|
||||||
|
@ -62,7 +62,7 @@ if nargin<2
|
||||||
end
|
end
|
||||||
|
|
||||||
if nargin>1 && ~(isa(a,'dynDate') || ischar(a))
|
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
|
end
|
||||||
|
|
||||||
if ~isa(a,'dynDate')
|
if ~isa(a,'dynDate')
|
||||||
|
|
|
@ -47,7 +47,7 @@ function dd = sort(dd) % --*-- Unitary tests --*--
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if ~isa(dd,'dynDates')
|
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
|
end
|
||||||
|
|
||||||
if dd.ndat==1
|
if dd.ndat==1
|
||||||
|
|
|
@ -47,7 +47,7 @@ function dd = unique(dd) % --*-- Unitary tests --*--
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if ~isa(dd,'dynDates')
|
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
|
end
|
||||||
|
|
||||||
if dd.ndat==1
|
if dd.ndat==1
|
||||||
|
|
|
@ -59,7 +59,7 @@ switch length(noise)
|
||||||
case number_of_particles
|
case number_of_particles
|
||||||
kitagawa_resampling = 0;
|
kitagawa_resampling = 0;
|
||||||
otherwise
|
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
|
end
|
||||||
|
|
||||||
% Set vectors of indices.
|
% Set vectors of indices.
|
||||||
|
|
|
@ -66,7 +66,7 @@ switch length(noise)
|
||||||
case number_of_particles
|
case number_of_particles
|
||||||
kitagawa_resampling = 0;
|
kitagawa_resampling = 0;
|
||||||
otherwise
|
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
|
end
|
||||||
|
|
||||||
% Get the empirical CDF.
|
% Get the empirical CDF.
|
||||||
|
|
Loading…
Reference in New Issue