Commit Graph

47 Commits (c0f12968ee18f746472c38a0f7eefc1675b5e52c)

Author SHA1 Message Date
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
Stéphane Adjemian (Charybdis) 55a3129644 Removed useless variable + Cosmetic change + Updated copyright 2012-11-14 12:32:02 +01:00
Stéphane Adjemian (Charybdis) 8b3e6e8c4d Removed useless variable + Cosmetic change + Updated copyright 2012-11-14 12:32:02 +01:00
Stéphane Adjemian (Charybdis) 62794a10c1 Removed useless variable + Cosmetic change + Updated copyright 2012-11-14 12:32:02 +01:00
Stéphane Adjemian (Charybdis) 42331f2239 Updated copyright 2012-11-14 12:32:02 +01:00
Stéphane Adjemian (Charybdis) 602d266bba Removed useless variable + Cosmetic change. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 4339673431 Removed useless variable in dynDate/eq. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 2def9f88dd Adapted unitary to the previous commit (#9dc16fc765bfd8957dbe24a2ac1244fbde1edf09). 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 131c423059 Changed behavior of eq overloaded method (dynDate class). Trigger an error message if the two compared objects have no common frequency. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 3c911e5b2c Updated copyright. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) c40dd62531 Fixed error messages. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) cae06f3d80 Added unitary test in colon overladed method (dynDate). 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 1df227ce21 Updated copyright. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 244395c2e7 Changed subsref overloaded method in dynDate class.
Allow to populate an empty dynDate object or update a dynDate object. For instance, if we instantiate
the dynDate class as follows:

a = dynDate()

a is an empty dynDate object. We can "populate" this object as follows

a('1938Q4')

Note however that a ins not modified in place (due to a limitation of Octave's class design), a copy
has to be made.
2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 52ebca922b Updated copyright. 2012-11-14 12:32:01 +01:00
Stéphane Adjemian (Charybdis) 05cfedfd51 Added comment. 2012-11-14 12:32:01 +01:00
Sébastien Villemot 0ab230b474 Fix copyright notices 2012-10-31 17:03:49 +01:00
Stéphane Adjemian (Charybdis) 01bfd371d2 Changed name of dynDates class to dynDate. dynDates will be used latter for irregular and unsorted sequence of dates. 2011-10-21 11:38:45 +02:00