Stéphane Adjemian (Charybdis)
0c98ba67f6
Fixed bug and added unitary tests.
2014-07-02 16:08:08 +02:00
Stéphane Adjemian (Scylla)
1b36d75947
Rewrote @dates/size and @dseries/size (compatibility fix for Octave).
2014-07-02 12:20:19 +02:00
Stéphane Adjemian (Charybdis)
7795833add
Fixed bug in dates class constructor (wrong call to length routine).
2014-06-15 19:17:30 +02:00
Stéphane Adjemian (Charybdis)
4f5ab5a236
Changed logic in dates class constructor.
2014-06-15 19:15:30 +02:00
Stéphane Adjemian (Charybdis)
ff27824b29
Fixed bug related to the initialization of the dseries and dates object (test that the input argument is a string).
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
d60565bfc4
Fixed bug in @dates/colon (last years were wrong if r>0).
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
ba726db417
Fixed bug in @dates/colon methood (wrong offset if r>0).
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
b858aed1c0
Various optimizations and cosmetic changes.
2014-06-11 12:22:32 +02:00
Stéphane Adjemian (Charybdis)
35645540e5
Bug fix. Wrong number of lines for time member if n<freq.
2014-06-11 12:22:32 +02:00
Stéphane Adjemian (Charybdis)
adda8b6b09
Another speed improvement for @dates/colon method (vectorized code, removed loop around add_periods_to_date routine).
2014-06-11 12:22:32 +02:00
Stéphane Adjemian (Charybdis)
cf43c90347
Improve speed of @dates/colon method (added specialized version of add_periods_to_array_of_dates -> add_periods_to_date).
2014-06-11 12:22:32 +02:00
Stéphane Adjemian (Charybdis)
cf86c8f721
Improve speed of comparison methods (lt, gt, le and ge) for @dates class.
2014-06-11 12:22:32 +02:00
Stéphane Adjemian (Charybdis)
84caf6d35f
Improve speed of @dates/colon method.
2014-06-11 12:22:32 +02:00
Stéphane Adjemian (Charybdis)
6aee567382
Save empty dates and dseries objects in memory (base workspace) instead of disk (faster). Added an initialization mode for dates and dseries constructor. The following commands:
...
dates('initialization');
dseries('initialization');
create variables emptydatesobject and emptydseriesobject in base workspace.
2014-06-11 12:22:31 +02:00
Stéphane Adjemian (Charybdis)
0206792c12
Save empty dates and dseries objects on disk (in dynareroot), to reduce the time needed to instantiate new objects.
2014-06-11 12:22:31 +02:00
Stéphane Adjemian (Scylla)
6ca649c4bf
Added char method for @dates objects.
2014-05-02 12:15:58 +02:00
Stéphane Adjemian (Scylla)
f03dd893a8
Allow the syntax o.disp() for @dates and @dseries objects.
2014-04-30 11:11:45 +02:00
Houtan Bastani
d469c3590d
reporting, dates: make shiftS calls more efficient
2014-02-06 15:30:19 +01:00
ferhat
d325ad15b2
Adds setdiff method to dates
2014-01-21 14:37:43 -06:00
Stéphane Adjemian (Scylla)
264460e9d0
Added @dates/ne method. Overloads the ~= operator.
2013-12-13 18:30:37 +01:00
Stéphane Adjemian (Scylla)
0419aa00e2
Cosmetic change (use isdates routine).
2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla)
cecd56e457
Renamed getDatesCellStringArray routine as strings. Factorized code.
2013-11-06 14:53:36 +01:00
Stéphane Adjemian (Scylla)
7e779ed506
Removed debugging info in unitary test.
2013-11-06 10:58:59 +01:00
Stéphane Adjemian (Scylla)
e6a18c8209
Added checks for octave and matlab version.
...
Behaviour of unique has changed after R2012b. We force the old behaviour to keep compatibility with Octave's implementation of the unique function.
Also removed useless condition.
2013-11-06 10:47:24 +01:00
Stéphane Adjemian (Scylla)
1f80af75c1
Rewrote header.
2013-11-06 10:01:47 +01:00
Stéphane Adjemian (Scylla)
71045299a4
Rewrote @dates/union more compactly (code factorization).
2013-11-06 09:42:18 +01:00
Stéphane Adjemian (Scylla)
1ac115ac2b
Fixed typo in header.
2013-11-06 09:16:40 +01:00
Stéphane Adjemian (Scylla)
e4ae889886
Cosmetic change.
2013-11-06 08:39:55 +01:00
Stéphane Adjemian (Scylla)
f98ef6b3fb
Rewrote header and removed useless condition.
2013-11-06 08:39:06 +01:00
Stéphane Adjemian (Scylla)
d6a6c42054
Removed useless condition (first argument has to be a dates object).
2013-11-05 17:00:02 +01:00
Stéphane Adjemian (Scylla)
7e70af88a9
Removed useless condition (first argument has to be a dates object).
2013-11-05 16:28:23 +01:00
Stéphane Adjemian (Scylla)
9795edd892
Removed useless condition (first argument has to be a dates object).
2013-11-05 16:27:16 +01:00
Stéphane Adjemian (Scylla)
e8be29e97c
Removed comments.
2013-11-05 16:26:16 +01:00
Stéphane Adjemian (Charybdis)
42453b4887
Rewrote @dates/min function more compactly (as in commit 88389316fa
).
2013-11-05 14:46:00 +01:00
Stéphane Adjemian (Charybdis)
88389316fa
Rewrote more compactly @dates/max function.
2013-11-04 19:21:00 +01:00
Stéphane Adjemian (Charybdis)
8568292fcd
Fixed bug that pops up when adding an empty dates object with a non empty dates object.
2013-11-04 19:13:53 +01:00
Stéphane Adjemian (Charybdis)
d8f1201a84
Fixed bug (undefined object).
2013-11-04 19:12:17 +01:00
Stéphane Adjemian (Charybdis)
8f93af16e1
Added method likecode for @dates/length.
2013-11-04 18:26:45 +01:00
Stéphane Adjemian (Charybdis)
a88a7a0ac5
Added method like call for @dates/isempty.
2013-11-04 18:02:15 +01:00
Stéphane Adjemian (Charybdis)
2078e06b16
Take care of matlab's version when using builtin intersect function.
2013-11-04 10:55:46 +01:00
Stéphane Adjemian (Charybdis)
7518a46de0
Fixed bug. Function isdates should not be located in @dates folder, otherwise the function is not found if the input argument is not a dates object (which makes the function useless).
2013-11-04 08:18:18 +01:00
Stéphane Adjemian (Charybdis)
63f8a731d9
Cosmetic changes.
2013-10-30 09:32:51 +01:00
Stéphane Adjemian (Charybdis)
70969e4e46
Use @dates/double as a method.
2013-10-24 14:55:37 +02:00
Stéphane Adjemian (Charybdis)
ed9babae26
Added missing constructor for dates of the form dates(DATES, DATES, DATES, ...).
...
Calls hozcat method.
2013-10-24 09:47:59 +02:00
Stéphane Adjemian (Charybdis)
6128338a15
Added missing tag for triggering the unitary tests in @dates/double.
2013-10-21 11:53:33 +02:00
Stéphane Adjemian (Charybdis)
d31a2674e8
Renamed dynDates2decimal as double, added doc/header and unitary tests.
...
The advantage of this change is that we can put dates in an array of
doubles. For instance, assuming that A is a 2*1 vector, the following
syntax is allowed:
A(1) = dates('1945Q3');
A(2) = dates('1938Q4');
Matlab/Octave calls the overload double function to convert the dates as
a double.
2013-10-21 11:50:21 +02:00
Stéphane Adjemian (Charybdis)
9a07e5c49d
Fixed unitary test.
2013-10-18 22:55:53 +02:00
Stéphane Adjemian (Charybdis)
7de84a4767
Fixed typo.
2013-10-16 15:47:56 +02:00
Stéphane Adjemian (Charybdis)
08f693dffd
Added @dates/horzcat and @dates/vertcat methods. Added a function to test if an object is a dates object.
2013-10-16 15:24:42 +02:00
Stéphane Adjemian (Charybdis)
306d8d6f88
Fixed bug (wrong use of inputname function).
2013-10-16 14:56:23 +02:00