Commit Graph

121 Commits (c0f12968ee18f746472c38a0f7eefc1675b5e52c)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 409675ce9c Modified @dynSeries/mrdivide method so that dynSeries objects defined over different non disjoint periods can be divided. 2013-04-12 17:55:14 +02:00
Stéphane Adjemian (Charybdis) 3b3d753d54 Modified @dynSeries/mtimes method so that dynSeries objects defined over different non disjoint periods can be multiplied. 2013-04-12 17:53:13 +02:00
Stéphane Adjemian (Charybdis) b955b20bf3 Modified @dynSeries/minus method so that dynSeries objects defined over different non disjoint periods can be substracted. 2013-04-12 17:50:52 +02:00
Stéphane Adjemian (Charybdis) 63502db6c0 Modified @dynSeries/plus method so that dynSeries objects defined over different non disjoint periods can be added. 2013-04-12 17:48:00 +02:00
Stéphane Adjemian (Charybdis) 6eecf0ba10 Fixed typo in header. 2013-04-12 17:21:10 +02:00
Stéphane Adjemian (Charybdis) 1dd0518188 Added unitary test in dynSeries/subsasgn. 2013-04-12 16:27:46 +02:00
Stéphane Adjemian (Charybdis) 681e7b677d Added the possibility to use two regular expressions in dynSeries/subsasgn method.
As in dynSeries/extract we consider a tensor product.
2013-04-12 16:26:57 +02:00
Stéphane Adjemian (Charybdis) f447ea8feb Added unitary test in dynSeries/extract method. 2013-04-12 15:59:19 +02:00
Stéphane Adjemian (Charybdis) 2a9e075c63 Added the possibility to use two regaular expressions in @dynSeries/extract method.
*Example*

Suppose that a dynSeries object contains the following set of variables

GDP_1
GDP_2
GDP_3
GDP_4
GDP_5
GDP_6
GDP_7
HICP_1
HICP_2
HICP_3
HICP_4
HICP_5
HICP_6
HICP_7
Consumption_1
Consumption_2
Consumption_3
Consumption_4
Consumption_5
Consumption_6
Consumption_7

Then the syntax:

b = a{'@GDP,HICP@_@1,2,3@'}

will instantiate a new dynSeries object containing variables:

GDP_1
GDP_2
GDP_3
HICP_1
HICP_2
HICP_3
2013-04-12 15:58:55 +02:00
Houtan Bastani a8b9dd24b8 dynSeries: tex_rename: allow to be used with one arg when the dynSeries has only one var 2013-04-03 19:13:32 +02:00
Stéphane Adjemian (Charybdis) aa73a3f5ed Added unitary test in dynSeries/subsref. 2013-03-29 14:53:34 +01:00
Stéphane Adjemian (Charybdis) 7fe697a7e0 Added the possibility to extract variables from dynSeries object using indices instead of variable names.
If ts is a dynSeries object containing variables A1, A2, A3, A4, A5, then the following syntaxes are equivalent:

ts{[1, 2, 5]}

ts{'A1','A2','A5'}

and will create a new dynSeries object made of variables A1, A2 and A5.
2013-03-29 14:53:34 +01:00
Stéphane Adjemian (Charybdis) ae80129db6 Added unitary test for @dynSeries/size. 2013-03-29 14:53:34 +01:00
Stéphane Adjemian (Charybdis) 45b89a17c3 Give dot access to the @dynSeries/size function. 2013-03-29 14:53:34 +01:00
Stéphane Adjemian (Charybdis) 9f117f9d00 Changed behaviour of @dynSeries/size.
If called with a second input argument (dim), size returns the number of observations if dim==1 or
the number of variables if dim==2. Without this second argument, size returns the number of
observations and the number of variables.
2013-03-29 14:53:34 +01:00
Stéphane Adjemian (Charybdis) 8311caf304 Closes #346 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) 1dd2512532 Added unitary test in @dynSeries/subsasgn 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) 5e16db5760 Closes #333 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) fbc34e74d4 Fixed bug. 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) 6f8aed5109 Fixed numbering of the unitary tests in @dynSeries/subsasgn method. 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) 974e8b1a39 Fixed bug. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 5132e501cf Fixed bug. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 35542ec904 Added the possibility to factorize the extraction of variables from a dynSeries object.
In addition to the already implemented selection mechanism using matlab's regular expressions,
we allow the following syntax:

a = ts{'GDP_@US,JP,FR@'};

to extract variables GDP_US, GDP_JP and GDP_FR from dynSeries object ts. If one of these variables
does not exist, an error message is issued.
2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 15a916512f Added unitary test in @dynSeries/extract method. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 3da56958bc Cosmetic change. Removed commented line of code. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 13ffe7d52c Added test in @dynSeries/check method. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 12517aa9f4 Fixed bug. Missing definition of time member in @dynSeries/merge method. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 894a81efb2 Added two new routines to rename name and tex name of a variable in a dynSeries object. 2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) 262c6a3a1c Changed the naming convention of the variables in the overloaded operators for the dynSeries class.
Names for the results of basic operations on dynSeries objects was '--NA--'. The name of the result
variables now keep track of the operations. For instance, if we have two dynSeries objects, ts1 and
ts2, respectively holding two variables 'A1' and 'B1', then:

 - the name of the variable in ts3=ts1+ts2 is 'plus(A1,B1)'
 - the name of the variable in ts3=ts1-ts2 is 'minus(A1,B1)'
 - the name of the variable in ts3=ts1*ts2 is 'multiply(A1,B1)'
 - the name of the variable in ts3=ts1/ts2 is 'divide(A1,B1)'
 - the tex name of the variable in ts3=ts1+ts2 is '(A1+B1)'
 - the tex name of the variable in ts3=ts1-ts2 is '(A1-B1)'
 - the tex name of the variable in ts3=ts1*ts2 is '(A1*B1)'
 - the tex name of the variable in ts3=ts1/ts2 is '(A1/B1)'
2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) 055ae25785 Fixed typo. 2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) 0be1b434d1 Fixed typo. 2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) e6a1fbbd81 Fixed typo. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 0d16bffff9 Added @dynSeries/check function.
Returns zero if the input argument is a well defined dynSeries object.
2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) bb7a1c134d Rewrote @dynSeries/subsasgn method.
+ Added the possibility to rename the assigned variables.
 + Added unitary tests.
2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) b195f0ce89 Added @dynSeries/insert method. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 6c8e1ca94a Added @dynSeries/align method. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 54ad672453 Issue an error if two dynSeries objects with common variable names are concatenated. Added a unitary test. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 78a89f874c Handle the case where the variable to be removed does not exist. Added a unitary test. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 9b4b7c46a7 Added @dynSeries/eq method. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 2e10cbc2c5 Added @dynSeries/pop method.
Removes a variable form a dynSeries object.
2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) fdfb1173ee Added unitary test in @dynSeries/merge. 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) b67ed0bb1f Removed useless deblank command. 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) 7d798f60ed Added missing tex member in @dynSeries/merge method. 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) 603fdbddd1 Changed default names for the variables.
If the names of the variables are not provided when instantiating a dynSeries object
then the default name is of the form Variable_i (i=1,...,N, where N is the number of
variables in the dataset).
2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) 69b86d8223 Changed unitary test. 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) b03bd4c647 Removed useless condition in @dynSeries/subsasgn. 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) d8d913c9eb Removed useless test. 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) 5dff466669 Fixed bug (added missing tex member to extracted variables). 2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) e5fba538a3 Changed behaviour of @dynSeries/qgrowth (name of the variables).
+ Prefix variable names with QGROWTH_
+ Prefix tex variable names with \delta_i with i=nothing or 3 depending on the frequency.
2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) baf741a496 Changed behaviour of @dynSeries/ygrowth (name of the variables).
+ Prefix variable names with YGROWTH_
 + Prefix tex variable names with \delta_i with i=nothing, 4, 12  or 52 depending on the frequency.
2013-03-21 16:42:11 +01:00