Use secure URL for link to GNU licenses
parent
19d7e2ce86
commit
e3138abef8
|
@ -12,4 +12,4 @@
|
|||
> General Public License for more details.
|
||||
|
||||
> A copy of the GNU General Public License is available here
|
||||
> <http://www.gnu.org/licenses/>.
|
||||
> <https://www.gnu.org/licenses/>.
|
||||
|
|
|
@ -28,7 +28,7 @@ function make_report_irfs(M, oo, ticks_every, showOutput)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if ~isfield(oo, 'irfs')
|
||||
disp('make_report_irfs: oo_.irfs does not exist');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addData(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.sections), ...
|
||||
'@page.addData: Before adding data, you must add a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addGraph(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.sections), ...
|
||||
'@page.addGraph: Before adding a graph, you must add a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addParagraph(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.sections), ...
|
||||
'@page.addParagraph: Before adding a paragraph, you must add a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSection(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
o.sections{end+1} = section(varargin{:});
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSeries(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.sections), ...
|
||||
'@page.addSeries: Before adding a series, you must add a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addTable(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.sections), ...
|
||||
'@page.addTable: Before adding a table, you must add a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addVspace(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.sections), ...
|
||||
'@page.addVspace: Before adding a vspace, you must add a section.');
|
||||
|
|
|
@ -28,7 +28,7 @@ function lastIndex = end(o, k, n)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(k==1 && n==1, '@page/end: page only has one dimension');
|
||||
lastIndex = numSections(o);
|
||||
|
|
|
@ -26,7 +26,7 @@ function ns = numSections(p)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
ns = length(p.sections);
|
||||
end
|
|
@ -16,7 +16,7 @@ classdef page < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (Access = private, Constant = true)
|
||||
titleFormatDefalut = {'\large\bfseries'}
|
||||
end
|
||||
|
|
|
@ -29,7 +29,7 @@ function write(o, fid, pg, rep_dir)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
fprintf(fid, '\n%% Page Number %d written %s\n', pg, datestr(now));
|
||||
if ~isempty(o.setPageNumber)
|
||||
|
|
|
@ -16,7 +16,7 @@ classdef paragraph < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (SetAccess = private)
|
||||
balancedCols = true % Determines whether the text is spread out evenly across the columns when the Paragraph has more than one column. Default: true.
|
||||
cols = 1 % The number of columns for the Paragraph. Default: 1.
|
||||
|
|
|
@ -27,7 +27,7 @@ function write(o, fid)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
fprintf(fid, '%% Paragraph Object written %s\n', datestr(now));
|
||||
fprintf(fid, '\\multicolumn{1}{p{\\linewidth}}{%%\n');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addData(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages), ...
|
||||
'@report.addData: Before adding data, you must add a page, section, and a table.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addGraph(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages) > 0, ...
|
||||
'@report.addGraph: Before adding a graph, you must add a page and a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addPage(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
np = length(o.pages) + 1;
|
||||
if o.showOutput
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addParagraph(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages) > 0, ...
|
||||
'@report.addParagraph: Before adding a paragraph, you must add a page and a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSection(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages) > 0, ...
|
||||
'@report.addSection: Before adding a section, you must add a page.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSeries(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages), ...
|
||||
['@report.addSeries: Before adding a series, you must add a page, ' ...
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addTable(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages), ...
|
||||
'@report.addTable: Before adding a table, you must add a page and a section.');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addVspace(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.pages), ...
|
||||
'@report.addVspace: Before adding a vspace, you must add a page and a section.');
|
||||
|
|
|
@ -28,7 +28,7 @@ function o = compile(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
opts.compiler = o.compiler;
|
||||
opts.showReport = true;
|
||||
|
|
|
@ -26,7 +26,7 @@ function n = numPages(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
n = length(o.pages);
|
||||
end
|
|
@ -16,7 +16,7 @@ classdef report < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (Access = private)
|
||||
pages = {}
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ function o = write(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if exist(o.directory, 'dir') ~= 7
|
||||
mkdir(o.directory);
|
||||
|
|
|
@ -16,7 +16,7 @@ classdef report_data < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (SetAccess = private)
|
||||
data = ''
|
||||
tableAlignRight = false
|
||||
|
|
|
@ -29,7 +29,7 @@ function writeDataForTable(o, fid, precision)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
%% Validate options provided by user
|
||||
assert(ischar(o.tableRowColor), '@report_data.writeDataForTable: tableRowColor must be a string');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSeries(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
o.series{end+1} = report_series(varargin{:});
|
||||
end
|
||||
|
|
|
@ -28,7 +28,7 @@ function lastIndex = end(o, k, n)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(k==1 && n==1, '@report_graph/end: graph only has one dimension');
|
||||
lastIndex = length(o.series);
|
||||
|
|
|
@ -16,7 +16,7 @@ classdef report_graph < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (Access = private)
|
||||
series = {}
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ function write(o, fid, pg, sec, row, col, rep_dir)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
graphName = writeGraphFile(o, pg, sec, row, col, rep_dir);
|
||||
fprintf(fid, '\\input{%s}', graphName);
|
||||
|
|
|
@ -31,7 +31,7 @@ function graphName = writeGraphFile(o, pg, sec, row, col, rep_dir)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
ne = length(o.series);
|
||||
if ne < 1
|
||||
|
|
|
@ -16,7 +16,7 @@ function s = getNameForLegend(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if isempty(o.data) || ~o.graphShowInLegend
|
||||
% for the case when there is no data in the series
|
||||
|
|
|
@ -16,7 +16,7 @@ function dd = getRange(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if isempty(o.data)
|
||||
dd = dates();
|
||||
|
|
|
@ -16,7 +16,7 @@ function s = getTexName(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if isempty(o.data)
|
||||
% for the case when there is no data in the series
|
||||
|
|
|
@ -26,7 +26,7 @@ function tf = isZero(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
tf = all(o.data.data == 0);
|
||||
end
|
||||
|
|
|
@ -30,7 +30,7 @@ function o = printSeries(o, fid, dser, dates, precision)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
dataString = sprintf('%%.%df', precision);
|
||||
precision = 10^precision;
|
||||
|
|
|
@ -16,7 +16,7 @@ classdef report_series < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (SetAccess = private)
|
||||
data = '' % The dseries that provides the data for the graph. Default: none.
|
||||
graphFanShadeColor = '' % The shading color to use between a series and the previously-added series in a graph. Useful for making fan charts. Default: empty.
|
||||
|
|
|
@ -16,7 +16,7 @@ function d = setDataToZeroFromZeroTol(o, ds)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
d = ds.data;
|
||||
stz = bsxfun(@and, ...
|
||||
|
|
|
@ -28,7 +28,7 @@ function writeSeriesForGraph(o, fid, xrange, series_num)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
%% Validate options provided by user
|
||||
if isempty(o.graphVline) && isempty(o.graphHline)
|
||||
|
|
|
@ -32,7 +32,7 @@ function writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
%% Validate options passed to function
|
||||
for i=1:length(dates)
|
||||
|
|
|
@ -16,7 +16,7 @@ function ymax = ymax(o, dd)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.data) && size(o.data, 2) == 1);
|
||||
ymax = max(o.data(dd).data);
|
||||
|
|
|
@ -16,7 +16,7 @@ function ymin = ymin(o, dd)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.data) && size(o.data, 2) == 1);
|
||||
ymin = min(o.data(dd).data);
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addData(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if length(o.table_data) >= 1
|
||||
error('@report_table.addData: You can only use addData once per table')
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSeries(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
o.series{end+1} = report_series(varargin{:});
|
||||
end
|
|
@ -16,7 +16,7 @@ classdef report_table < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (Access = private, Constant = true)
|
||||
titleFormatDefalut = {'\large'}
|
||||
end
|
||||
|
@ -187,7 +187,7 @@ function tf = allCellsAreDatesRange(dcell)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(iscell(dcell));
|
||||
tf = true;
|
||||
|
@ -227,7 +227,7 @@ function tf = allCellsAreDates(dcell)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(iscell(dcell));
|
||||
tf = true;
|
||||
|
|
|
@ -32,7 +32,7 @@ function write(o, fid, pg, sec, row, col, rep_dir)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
tableName = writeTableFile(o, pg, sec, row, col, rep_dir);
|
||||
fprintf(fid, '\\input{%s}', tableName);
|
||||
|
|
|
@ -31,7 +31,7 @@ function tableName = writeTableFile(o, pg, sec, row, col, rep_dir)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
ne = length(o.series);
|
||||
is_data_table = ~isempty(o.table_data);
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addData(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.elements), ...
|
||||
'@section.addData: Before adding data, you must add either a table');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addGraph(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if ~isempty(o.elements)
|
||||
assert(~isa(o.elements{1}, 'paragraph'), ...
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addParagraph(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(o.cols == 1, ...
|
||||
'@addParagraph: you can only add a paragraph to a Section that contains one column');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addSeries(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(~isempty(o.elements), ...
|
||||
'@section.addSeries: Before adding a series, you must add either a graph or a table');
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addTable(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if ~isempty(o.elements)
|
||||
assert(~isa(o.elements{1}, 'paragraph'), ...
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = addVspace(o, varargin)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
if ~isempty(o.elements)
|
||||
assert(~isa(o.elements{1}, 'paragraph'), ...
|
||||
|
|
|
@ -28,7 +28,7 @@ function lastIndex = end(o, k, n)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(k==1 && n==1, '@section/end: section only has one dimension');
|
||||
lastIndex = numElements(o);
|
||||
|
|
|
@ -16,7 +16,7 @@ function n = numElements(o)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
n = length(o.elements);
|
||||
end
|
|
@ -16,7 +16,7 @@ classdef section < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (Access = private)
|
||||
elements = {}
|
||||
end
|
||||
|
|
|
@ -30,7 +30,7 @@ function write(o, fid, pg, sec, rep_dir)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
fprintf(fid, '%% Section Object written %s\n', datestr(now));
|
||||
if isempty(o.elements)
|
||||
|
|
|
@ -16,7 +16,7 @@ classdef vspace < handle
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
properties (SetAccess = private)
|
||||
hline = 0 % Number of horizontal lines to be inserted. Default 0
|
||||
number = 1 % Number of new lines to be inserted. Default 1
|
||||
|
|
|
@ -27,7 +27,7 @@ function o = write(o, fid)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
fprintf(fid, repmat(' \\par \\medskip ', 1, o.number));
|
||||
if o.hline > 0
|
||||
|
|
|
@ -26,7 +26,7 @@ function str = addCommasToCellStr(cs)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
assert(iscellstr(cs), 'addCommasToCellStr: cs should be a cell array of strings.');
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ function dd = getMaxRange(cellser)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
ddmin = dates();
|
||||
ddmax = dates();
|
||||
|
|
|
@ -18,7 +18,7 @@ function initialize_reporting_toolbox()
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
% Find reporting source directory
|
||||
reporting_src_root = strrep(which('initialize_reporting_toolbox'), 'initialize_reporting_toolbox.m', '');
|
||||
|
|
|
@ -14,7 +14,7 @@ function rep = AnnualTable(rep, db_a, dc_a, seriesRootName, arange)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
shortNames = {'US', 'EU', 'JA', 'EA6', 'LA6', 'RC6'};
|
||||
longNames = {'Coca Cola', 'Kinder Bueno', 'Pizza', ...
|
||||
|
|
|
@ -14,7 +14,7 @@ function rep = CommResidTablePage(rep, db_q, dc_q, trange, vline_after)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
seriesNames = {{'RES_LRPOIL_GAP_WORLD'}, ...
|
||||
{'RES_LRPOIL_BAR_WORLD'}, ...
|
||||
|
|
|
@ -14,7 +14,7 @@ function rep = CountryGraphPage(rep, countryAbbr, db_q, dc_q, prange, srange)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
startpoint = strings(prange(1));
|
||||
shaded = strings(srange(1));
|
||||
|
|
|
@ -14,7 +14,7 @@ function rep = CountryTablePage(rep, countryAbbr, countryName, db_q, dc_q, db_a,
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
seriesNames = {{'RS_', 'Short Term Interest Rate'}, ...
|
||||
{'RR_', 'Real Interest Rate'}, ...
|
||||
|
|
|
@ -14,7 +14,7 @@ function rep = ResidTablePage(rep, countryAbbr, countryName, db_q, dc_q, trange,
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
seriesNames = {{'RES_RS_'}, ...
|
||||
{'RES_RR_BAR_'}, ...
|
||||
|
|
|
@ -16,7 +16,7 @@ function createReport(dc_a, dc_q, db_a, db_q)
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
tic
|
||||
larange= dates('2007a'):dates('2014a');
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
% 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/>.
|
||||
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
initialize_dseries_class();
|
||||
initialize_reporting_toolbox();
|
||||
|
|
Loading…
Reference in New Issue