close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
May 13, 2015, 8:33:06 AM (10 years ago)
- Author:
-
Pedro Gea
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v6
|
v7
|
|
22 | 22 | Ejemplos: |
23 | 23 | {{{ |
24 | | #!perl |
| 24 | #!ruby |
25 | 25 | Date(2012) # equivale a y2012 en TOL |
26 | 26 | Date(2015,5,12) # equivale a y2015m05d12 en TOL |
… |
… |
|
59 | 59 | Ejemplos: |
60 | 60 | {{{ |
61 | | #!perl |
| 61 | #!ruby |
62 | 62 | Dsucc(Sys.Date(), Monthly, 1) # próximo mes |
63 | 63 | currYear <- Dfloor(Sys.Date(), Yearly) # año en curso |
… |
… |
|
79 | 79 | Ejemplos: |
80 | 80 | {{{ |
81 | | #!perl |
| 81 | #!ruby |
82 | 82 | Serie(rnorm(12), Monthly, Date(2015)) # constructor Serie |
83 | 83 | ts1 <- ts(1:10, frequency = 4, start = c(1959, 2)) # constructor ts |
… |
… |
|
99 | 99 | |
100 | 100 | {{{ |
| 101 | #!ruby |
101 | 102 | s <- Serie(rnorm(12), Monthly, Date(2015)) |
102 | 103 | Ssub(s, Date(2015,6), Date(2015,8)) # datos de junio a agosto |
… |
… |
|
122 | 123 | Ejemplos: |
123 | 124 | {{{ |
| 125 | #!ruby |
124 | 126 | (1+B)^2 |
125 | 127 | pol <- (1-A)*(1+B) |
126 | | as.character(pol, forward="F") |
| 128 | as.character(pol, forward="F") # polinomio en formato TOL |
127 | 129 | }}} |
128 | 130 | |
… |
… |
|
137 | 139 | Ejemplos: |
138 | 140 | {{{ |
139 | | #!perl |
| 141 | #!ruby |
140 | 142 | (1-B)/(1+B) |
141 | 143 | Ratio(1, 1-B) |