From 822446c043dd0d1a96750ba122315cc7891f677c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=28Charybdis=29?= Date: Wed, 15 Aug 2018 22:05:47 +0200 Subject: [PATCH] Added missing copyright headers. --- matlab/pac-tools/a2alpha.m | 17 +++++++++++++++++ matlab/pac-tools/buildGmatrix.m | 17 +++++++++++++++++ matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m | 17 +++++++++++++++++ matlab/pac-tools/hVectors.m | 17 +++++++++++++++++ matlab/pac-tools/iota.m | 17 +++++++++++++++++ 5 files changed, 85 insertions(+) diff --git a/matlab/pac-tools/a2alpha.m b/matlab/pac-tools/a2alpha.m index 28f44a41c..2e2b31937 100644 --- a/matlab/pac-tools/a2alpha.m +++ b/matlab/pac-tools/a2alpha.m @@ -22,6 +22,23 @@ function alpha = a2alpha(a) % % Note that the last elements of input a are (a_0, a_1, ..., a_{m-1}). +% Copyright (C) 2018 Dynare Team +% +% This file is part of Dynare. +% +% Dynare 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 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 . + % Return an error if the input is not a vector if ~isvector(a) error('Input argument has to be a vector of doubles!') diff --git a/matlab/pac-tools/buildGmatrix.m b/matlab/pac-tools/buildGmatrix.m index e5fb314a4..6685aedfa 100644 --- a/matlab/pac-tools/buildGmatrix.m +++ b/matlab/pac-tools/buildGmatrix.m @@ -9,6 +9,23 @@ function G = buildGmatrix(alpha, beta) % OUTPUTS % - G [double] (m+1)*(m+1) matrix. +% Copyright (C) 2018 Dynare Team +% +% This file is part of Dynare. +% +% Dynare 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 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 . + if nargin<2 error('Two input arguments are required (vector of alpha parameters and beta discount parameter)!') end diff --git a/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m b/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m index d18c8b670..1565bd500 100644 --- a/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m +++ b/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m @@ -10,6 +10,23 @@ function [G, alpha, beta] = buildGmatrixWithAlphaAndBeta(params) % - alpha [double] m*1 vector of PAC parameters. % - beta [double] scalar, discount factor. +% Copyright (C) 2018 Dynare Team +% +% This file is part of Dynare. +% +% Dynare 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 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 . + % Return an error if the input is not a vector. if ~isvector(params) || ~isnumeric(params) || ~isreal(params) error('Input argument has to be a vector of doubles!') diff --git a/matlab/pac-tools/hVectors.m b/matlab/pac-tools/hVectors.m index 58aced16e..d22e2d0e5 100644 --- a/matlab/pac-tools/hVectors.m +++ b/matlab/pac-tools/hVectors.m @@ -17,6 +17,23 @@ function [h0, h1, longruncorrectionparameter] = hVectors(params, H, ids, idns, a % params(2:end-1) ⟶ Autoregressive parameters. % params(end) ⟶ Discount factor. +% Copyright (C) 2018 Dynare Team +% +% This file is part of Dynare. +% +% Dynare 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 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 . + if nargout>1 && nargin<4 error('Wrong number of Inputs/Outputs!') end diff --git a/matlab/pac-tools/iota.m b/matlab/pac-tools/iota.m index 3a48a03ec..e7613f072 100644 --- a/matlab/pac-tools/iota.m +++ b/matlab/pac-tools/iota.m @@ -9,6 +9,23 @@ function i = iota(n, idx) % OUTPUTS % - i [integer] n*1 vector. All elements are zero except those specified in idx. +% Copyright (C) 2018 Dynare Team +% +% This file is part of Dynare. +% +% Dynare 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 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 . + if ~isscalar(n) || ~isvector(idx) error('First input has to be a scalar and second input a vector!') end