Fixed copyright notices.

parent eae7e72c
......@@ -9,7 +9,7 @@ function o = append(o, d) % --*-- Unitary tests --*--
% OUTPUTS
% - o [dates] dates object containing dates defined in o and d.
% Copyright (C) 2012-2015 Dynare Team
% Copyright (C) 2012-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function o = append_(o, d) % --*-- Unitary tests --*--
% OUTPUTS
% - o [dates] dates object containing dates defined in o and d.
% Copyright (C) 2012-2015 Dynare Team
% Copyright (C) 2012-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function s = char(o) % --*-- Unitary tests --*--
% OUTPUTS
% - s [string]
% Copyright (C) 2014 Dynare Team
% Copyright (C) 2014-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -14,7 +14,7 @@ function q = colon(varargin) % --*-- Unitary tests --*--
% 1. p must be greater than o if d>0.
% 2. p and q are dates objects with one element.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function p = copy(o) % --*-- Unitary tests --*--
% OUTPUTS
% - p [dates]
% Copyright (C) 2014-2015 Dynare Team
% Copyright (C) 2014-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
classdef dates<handle % --*-- Unitary tests --*--
% Copyright (C) 2014-2015 Dynare Team
% Copyright (C) 2014-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function disp(o)
% OUTPTS
% None
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function display(o)
% OUTPTS
% None
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -13,7 +13,7 @@ function [m, f] = double(o) % --*-- Unitary tests --*--
% REMARKS
% Obviously the frequency is lost during the conversion.
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -10,7 +10,7 @@ function lastIndex = end(o, k, n) % --*-- Unitary tests --*--
% OUTPUTS
% lastIndex [integer] last dates index
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function l = ge(varargin) % --*-- Unitary tests --*--
% OUTPUTS
% - l [logical] column vector of max(n,1) elements (zeros or ones).
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function q = intersect(o, p) % --*-- Unitary tests --*--
% OUTPUTS
% - q [dates] All the common elements in o and p.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function l = isempty(o) % --*-- Unitary tests --*--
% OUTPUTS
% - l [logical]
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function l = isequal(o, p, fake) % --*-- Unitary tests --*--
% OUTPUTS
% - l [logical]
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function l = le(varargin) % --*-- Unitary tests --*--
% OUTPUTS
% - l [logical] column vector of max(n,1) elements (zeros or ones).
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function n = length(o) % --*-- Unitary tests --*--
% OUTPUTS
% - n [integer] Number of elements in o.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function l = lt(varargin) % --*-- Unitary tests --*--
% OUTPUTS
% - l [logical] column vector of max(n,1) elements (zeros or ones).
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function q = max(varargin) % --*-- Unitary tests --*--
% OUTPUTS
% - q [dates]
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function q = min(varargin) % --*-- Unitary tests --*--
% OUTPUTS
% - q [dates]
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -18,7 +18,7 @@ function q = minus(o,p) % --*-- Unitary tests --*--
% p periods backward.
% 3. If o is not a dates object, an error is returned.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -12,7 +12,7 @@ function p = mtimes(o,n) % --*-- Unitary tests --*--
% 1. If A = dates('2000Q1'), then B=A*3 is a dates object equal to dates('2000Q1','2000Q1','2000Q1')
% 2. If A = dates('2003Q1','2009Q2'), then B=A*2 is a dates object equal to dates('2003Q1','2009Q2','2003Q1','2009Q2')
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function s = ndat(o) % --*-- Unitary tests --*--
% OUTPUTS
% - s [integer]
% Copyright (C) 2015 Dynare Team
% Copyright (C) 2015-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -14,7 +14,7 @@ function q = plus(o,p) % --*-- Unitary tests --*--
% 2. If one of the inputs is an integer or a vector of integers, the method shifts the dates
% object by X (the interger input) periods forward.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -15,7 +15,7 @@ function o = pop(o, p) % --*-- Unitary tests --*--
%
% See also remove, setdiff.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -15,7 +15,7 @@ function o = pop_(o, p) % --*-- Unitary tests --*--
%
% See also remove, setdiff.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -9,7 +9,7 @@ function [o, p] = comparison_arg_checks(varargin) % --*-- Unitary tests --*--
% - o [dates] dates object with n or 1 elements.
% - p [dates] dates object with n or 1 elements.
% Copyright (C) 2014 Dynare Team
% Copyright (C) 2014-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -10,7 +10,7 @@ function str = dates4display(o, name, max_number_of_elements) % --*-- Unitary te
% OUTPUTS
% - str [string] Representation of the dates object as a string.
% Copyright (C) 2014 Dynare Team
% Copyright (C) 2014-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
function c = greaterorequal(a,b) % --*-- Unitary tests --*--
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
function c = greaterthan(a,b) % --*-- Unitary tests --*--
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2015 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
function c = lessorequal(a, b) % --*-- Unitary tests --*--
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2015 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
function c = lessthan(a,b) % --*-- Unitary tests --*--
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2015 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -15,7 +15,7 @@ function o = remove(o, p) % --*-- Unitary tests --*--
%
% See also pop, setdiff
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -15,7 +15,7 @@ function o = remove_(o, p) % --*-- Unitary tests --*--
%
% See also pop, setdiff
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -12,7 +12,7 @@ function [q, io] = setdiff(o,p) % --*-- Unitary tests --*--
%
% See also pop, remove.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function o = sort(o) % --*-- Unitary tests --*--
% OUTPUTS
% - o [dates] with dates sorted by increasing order.
% Copyright (C) 2011-2015 Dynare Team
% Copyright (C) 2011-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function o = sort_(o) % --*-- Unitary tests --*--
% OUTPUTS
% - o [dates] with dates sorted by increasing order.
% Copyright (C) 2015 Dynare Team
% Copyright (C) 2015-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function m = strings(o) % --*-- Unitary tests --*--
% OUTPUTS
% - m [cell of char] object with n elements.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -2,7 +2,7 @@ function s = subperiod(d)
% Returns the subperiod (quarter, month or week depending on the frequency).
% Copyright (C) 2016 Dynare Team
% Copyright (C) 2016-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
function val = subsasgn(val, idx, rhs) % --*-- Unitary tests --*--
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2015 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -13,7 +13,7 @@ function B = subsref(A,S) % --*-- Unitary tests --*--
% 1. The type of the returned argument depends on the content of S.
% 2. See the matlab's documentation about the subsref method.
% Copyright (C) 2011-2015 Dynare Team
% Copyright (C) 2011-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function o = uminus(o) % --*-- Unitary tests --*--
% OUTPUTS
% - o [dates]
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -11,7 +11,7 @@ function o = union(varargin) % --*-- Unitary tests --*--
% REMARKS
% 1. Elements in o are sorted by increasing order.
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -11,7 +11,7 @@ function o = unique(o) % --*-- Unitary tests --*--
% REMARKS
% 1. Only the last occurence of a date is kept.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -11,7 +11,7 @@ function o = unique_(o) % --*-- Unitary tests --*--
% REMARKS
% 1. Only the last occurence of a date is kept.
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -8,7 +8,7 @@ function o = uplus(o) % --*-- Unitary tests --*--
% OUTPUTS
% - o [dates]
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -15,7 +15,7 @@ function o = vertcat(varargin) % --*-- Unitary tests --*--
%
% Defines a dates object D containing the dates appearing in A, B and C.
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -2,7 +2,7 @@ function y = year(d)
% Returns the year.
% Copyright (C) 2016 Dynare Team
% Copyright (C) 2016-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
% Copyright (C) 2014-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare dates submodule is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Get the path to the dates/src folder.
dates_src_root = strrep(which('initialize_dates_toolbox'),'initialize_dates_toolbox.m','');
......
......@@ -10,7 +10,7 @@ function s = date2string(varargin) % --*-- Unitary tests --*--
% OUTPUTS
% o s string.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -6,7 +6,7 @@ function s = freq2string(freq) % --*-- Unitary tests --*--
% OUTPUTS
% o s character, equal to Y, Q, M or W (resp. annual, quaterly, monthly or weekly)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
function date = string2date(a) % --*-- Unitary tests --*--
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -6,7 +6,7 @@ function freq = string2freq(s) % --*-- Unitary tests --*--
% OUTPUTS
% o freq scalar integer, equal to 1, 4, 12 or 52 (resp. annual, quaterly, monthly or weekly)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function b = isdate(str) % --*-- Unitary tests --*--
% OUTPUTS
% o b integer scalar, equal to 1 if str can be interpreted as a date or 0 otherwise.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -2,7 +2,7 @@ function B = isdates(A) % --*-- Unitary tests --*--
% Tests if the input A is a dates object.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2015 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function B = isfreq(A) % --*-- Unitary tests --*--
% OUTPUTS
% o B scalar integer equal to one if A can be interpreted as a frequency, zero otherwise.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function b = ismonthly(str) % --*-- Unitary tests --*--
% OUTPUTS
% o b integer scalar, equal to 1 if str can be interpreted as a monthly date or 0 otherwise.
% Copyright (C) 2012-2013 Dynare Team
% Copyright (C) 2012-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function b = isquaterly(str) % --*-- Unitary tests --*--
% OUTPUTS
% o b integer scalar, equal to 1 if str can be interpreted as a quaterly date or 0 otherwise.
% Copyright (C) 2012-2013 Dynare Team
% Copyright (C) 2012-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function b = isstringdate(str) % --*-- Unitary tests --*--
% OUTPUTS
% o b integer scalar, equal to 1 if str can be interpreted as a date or 0 otherwise.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
function C = issubperiod(A,B) % --*-- Unitary tests --*--
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2015 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function b = isweekly(str) % --*-- Unitary tests --*--
% OUTPUTS
% o b integer scalar, equal to 1 if str can be interpreted as a weekly date or 0 otherwise.
% Copyright (C) 2012-2013 Dynare Team
% Copyright (C) 2012-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -8,7 +8,7 @@ function b = isyearly(str) % --*-- Unitary tests --*--
% OUTPUTS
% o b integer scalar, equal to 1 if str can be interpreted as a yearly date or 0 otherwise.
% Copyright (C) 2012-2013 Dynare Team
% Copyright (C) 2012-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -13,7 +13,7 @@ function [l,c,d] = isint(a) % --*-- Unitary tests --*--
% REMARKS
% p+q is equal to the product of m by n.
% Copyright (C) 2009-2014 Dynare Team
% Copyright (C) 2009-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -2,7 +2,7 @@ function l = isoctave()
% Tests if Octave is used.
% Copyright (C) 2013-2014 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -11,7 +11,7 @@ function r = matlab_ver_less_than(verstr)
% REMARKS
% 1. This function will fail under Octave.
% Copyright (C) 2008-2014 Dynare Team
% Copyright (C) 2008-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -2,7 +2,7 @@ function S = shiftS(S,n) % --*-- Unitary tests --*--
% Removes the first n elements of a one dimensional cell array.
% Copyright (C) 2009-2014 Dynare Team
% Copyright (C) 2009-2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......
......@@ -2,7 +2,7 @@ function time = add_periods_to_array_of_dates(time, freq, p) % --*-- Unitary te
% Adds a p periods (p can be negative) to a date (or a set of dates) characterized by array time and frequency freq.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -2,7 +2,7 @@ function time = add_periods_to_date(time, freq, p) % --*-- Unitary tests --*--
% Adds a p periods (p can be negative) to a date (or a set of dates) characterized by array time and frequency freq.
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013-2017 Dynare Team
%
% This file is part of Dynare.
%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment