Stéphane Adjemian (Charybdis)
4ce2c3644a
Fixed bug (The argument of inputname must be the input argument number not the input argument itself).
2013-09-06 12:01:53 +02:00
Stéphane Adjemian (Charybdis)
23a6ad22dd
Fixed bug causing unitary tests for dynSeries::plus and dynSeries::minus to fail.
...
See http://www.dynare.org/stepan/dynare/tests/report-f4c01a43bc2882e7fd18f3cd82344fff9644088c.log
2013-09-06 10:33:50 +02:00
Stéphane Adjemian (Charybdis)
b76b0c8add
Moved the commented first line, used to declare that the routine has unitary tests, after the declaration of the function, otherwise help is not displayed.
2013-09-05 11:34:19 +02:00
Stéphane Adjemian (Charybdis)
61c4244410
Added unitary test.
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
56be6eb463
Added new interface to dynDate. The constructor accepts a character ('Y', 'A', 'Q', 'M' or 'W') as the second input to specify the frequency instead of an integer (1, 4, 12, or 52). The following expressions are equivalent:
...
a = dynDate([1945 3],4);
a = dynDate([1945 3],'Q');
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
d44732a8ca
Fixed copy/paste typo in unitary test.
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
9a5749343c
Added tests in dynDate constructor (when dynDate is called with two input arguments: time and frequency).
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
a2d5873a3f
Fixed typo (useless space).
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
c47131f052
Cosmetic change.
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
ce400706ef
Added test for integer input (dynDate constructor with one numeric input).
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
0f10880d07
Added 'Y' or 'A' for yearly data in dynDate class.
...
Follwing expressions are equivalent:
a = dynDate('2009');
a = dynDate('2009y');
a = dynDate('2009a');
a = dynaDate(2009);
2013-09-05 10:14:02 +02:00
Stéphane Adjemian (Charybdis)
103b6cf803
Changed the syntax so that the difference between calling a member or a method is more explicit.
...
If a is a dynDate object:
a.format or a.format() are allowed because format is a method.
a.freq is allowed but a.freq() returns an error message because freq (same for time) is a member.
2013-09-02 17:47:11 +02:00
Stéphane Adjemian (Charybdis)
1657111fa8
Added tags for unitary tests.
2013-07-04 15:00:24 +02:00
Stéphane Adjemian (Charybdis)
53ce4205e2
Modified behaviour of disp overload method in @dynDate and @dynDates classes.
2013-07-01 18:21:21 +02:00
Stéphane Adjemian (Charybdis)
f042fcdd7b
Fixed display issues for dynDate and dynDates empty objects.
2013-07-01 17:24:22 +02:00
Stéphane Adjemian (Charybdis)
cb5cb03750
Added @dynDate/horzcat method.
2013-07-01 17:24:22 +02:00
Stéphane Adjemian (Charybdis)
59c8089214
Changed unitary test according to Ferhat's commit b5a167caf8830393094cb8e3ec8eed4c17d2e77e.
2013-06-17 17:52:27 +02:00
Ferhat Mihoubi
b7ff26c8aa
Correct the way to handle the frequencies when a number of periods is added to a dynDate
2013-06-17 17:52:26 +02:00
Sébastien Villemot
61485ab809
Fix copyright notices
2013-06-12 17:04:46 +02:00
Houtan Bastani
037ec55dfd
dynDate: add missing case to throw error if another char is passed
2013-06-07 17:23:22 +02:00
Stéphane Adjemian (Charybdis)
be91a24daa
Fixed bug that was affecting the display of dynDates objects.
2013-04-12 17:41:32 +02:00
Houtan Bastani
ea718d6998
dynDate: fix typos
2013-03-29 18:51:26 +01:00
Houtan Bastani
8591e7b4b7
fix typo
2013-03-15 16:43:56 +01:00
Stéphane Adjemian (Ulysses)
ca5bf548a2
Changed the behaviour of @dynDate/eq.
...
Return zero if A and B have no common frequencies (previously an error was returned).
2013-03-14 23:08:35 +01:00
Stéphane Adjemian (Ulysses)
1d3dc37781
Allow declaration of dates with lowercase frequencies.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
846aff99fd
Removed useless addpath command from unitary tests.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
a18766d676
Cosmetic change.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
2152453c7d
Added unitary test.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
e4cad0762a
Cosmetic change.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
1e4fd736ee
Added unitary test. Removed useless addpath commands from unitary test.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
2ee2f0df93
Removed commented lines of code.
2013-03-14 18:35:35 +01:00
Stéphane Adjemian (Ulysses)
59f436dc44
Fixed unitary tests for @dynDate/subsref method.
2013-03-14 14:48:36 +01:00
Stéphane Adjemian (Ulysses)
2ca26ca89a
Rewrote @dynDate/subsref method recursively. Improved error messages.
2013-03-14 14:48:36 +01:00
Stéphane Adjemian (Ulysses)
2dad114eec
Added a new interface to instantiate dynDate objects.
...
Call dynDate constructor with two arguments: teh first one is a 2*1 vector of integers (for time), the second one is a scalar integer (for freq).
2013-03-14 11:08:34 +01:00
Sébastien Villemot
fac7319284
@dynDate.display(): simplify the code by reusing format()
2013-02-07 15:28:43 +01:00
Sébastien Villemot
cfa28a58d3
Add display method for dynDate and dynDates classes
2013-02-05 14:49:30 +01:00
Sébastien Villemot
3a599aee84
Add subsasgn methods to dynDate and dynDates
...
The rationale is that, in the absence of a subsasgn method, MATLAB and Octave
behave differently. The former refuses any data member update, while the latter
allows all. Providing an implementation is therefore required to have uniform
behavior.
2013-02-05 14:32:08 +01:00
Michel Juillard
4f7606f5a1
* matlab/@dynDate: started changing references to dynTime by
...
dynDates; dynDate can be initialized with a single dynDate
2013-01-12 21:39:54 +01:00
Michel Juillard
15fa7fc840
* matlab/@dynDate/colon.m: fixed bug when there is only one series
2013-01-12 21:36:01 +01:00
Stéphane Adjemian (Charybdis)
73c96097bd
Append 'Y' to yearly dates.
2012-12-07 16:43:06 +01:00
Stéphane Adjemian (Charybdis)
c858b366f9
Added dot access to format method (dynDate).
2012-12-07 16:43:06 +01:00
Stéphane Adjemian (Charybdis)
f01b97da18
Check that freq property is also empty.
2012-11-29 12:56:00 +01:00
Stéphane Adjemian (Charybdis)
79b5db3037
Cosmetic change.
2012-11-15 13:54:21 +01:00
Stéphane Adjemian (Charybdis)
89356ba248
Added a unitary test in the overloaded colon method of the dynDate class, using the new feature introduced in the previous commits.
2012-11-15 13:53:35 +01:00
Stéphane Adjemian (Charybdis)
67e8db365c
Changed subsref overloaded method (dynDate): added a new interface to populate empty dynDate objects with specified frequency. Added unitary test.
...
For instance if we instantiate an empty dynDate object for quaterly dates:
qq = dynDate('Q');
Then we can populate this object as follows (2009 second quarter):
d1 = qq(2009,2);
2012-11-15 12:40:24 +01:00
Stéphane Adjemian (Charybdis)
0b7e5910ae
Changed a condition in dynDate constructor (for yearly dates).
2012-11-15 12:34:11 +01:00
Stéphane Adjemian (Charybdis)
e71ccaef0b
Added the possibility to instantiate empty quaterly, monthly or weekly dynDate objects. Added unitary test.
2012-11-15 11:07:43 +01:00
Stéphane Adjemian (Charybdis)
fde2694e0c
Added append method in dynDates class (with unitary tests).
2012-11-14 12:32:02 +01:00
Stéphane Adjemian (Charybdis)
32905b1ce1
Added more complex calls to subsref overloaded method for dynDate class. Added unitary test.
2012-11-14 12:32:02 +01:00
Stéphane Adjemian (Charybdis)
47dd0d09ad
Changed behavior of ne overload method (dynDate) as in commit ##9dc16fc765bfd8957dbe24a2ac1244fbde1edf09. Removed useless variable. Updated copyright.
2012-11-14 12:32:02 +01:00