@@ -140,42 +140,18 @@ In enkf_internal(data, Np = Np, ..., verbose = verbose) :
140
140
Error : in 'enkf': 'emeasure' is a needed basic component.
141
141
> try(enkf(enkf,Np=100,vmeasure=NULL))
142
142
Error : in 'enkf': 'vmeasure' is a needed basic component.
143
- > try(enkf(enkf,C=matrix(1,2,4,dimnames=list(c("y2","y1"),NULL)),Np=100))
143
+ > try(enkf(enkf,userdata=list( C=matrix(1,2,4,dimnames=list(c("y2","y1"),NULL) )),Np=100))
144
144
Error : in 'enkf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
145
- In addition: Warning message:
146
- The provided object 'C' is available for use by POMP basic components.
147
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
148
- In a future release, this warning will become an error.
149
- > try(enkf(enkf,C=matrix(1,3,4,dimnames=list(c("a","b","c"),NULL)),Np=100))
145
+ > try(enkf(enkf,userdata=list(C=matrix(1,3,4,dimnames=list(c("a","b","c"),NULL))),Np=100))
150
146
Error : in 'enkf': number of observables returned by 'emeasure' does not match data.
151
- In addition: Warning message:
152
- The provided object 'C' is available for use by POMP basic components.
153
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
154
- In a future release, this warning will become an error.
155
- > try(enkf(enkf,R=matrix(1,1,1,dimnames=list(c("y1"),NULL)),Np=100))
147
+ > try(enkf(enkf,userdata=list(R=matrix(1,1,1,dimnames=list(c("y1"),NULL))),Np=100))
156
148
Error : in 'enkf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
157
- In addition: Warning message:
158
- The provided object 'R' is available for use by POMP basic components.
159
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
160
- In a future release, this warning will become an error.
161
- > try(enkf(enkf,R=matrix(1,2,2,dimnames=list(c("y2","y1"),NULL)),Np=100))
149
+ > try(enkf(enkf,userdata=list(R=matrix(1,2,2,dimnames=list(c("y2","y1"),NULL))),Np=100))
162
150
Error : in 'enkf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
163
- In addition: Warning message:
164
- The provided object 'R' is available for use by POMP basic components.
165
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
166
- In a future release, this warning will become an error.
167
- > try(enkf(enkf,R=matrix(1,2,2,dimnames=list(c("a","b"),NULL)),Np=100))
151
+ > try(enkf(enkf,userdata=list(R=matrix(1,2,2,dimnames=list(c("a","b"),NULL))),Np=100))
168
152
Error : in 'enkf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
169
- In addition: Warning message:
170
- The provided object 'R' is available for use by POMP basic components.
171
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
172
- In a future release, this warning will become an error.
173
- > try(enkf(enkf,R=matrix(1,3,3,dimnames=list(c("a","b","c"),NULL)),Np=100))
153
+ > try(enkf(enkf,userdata=list(R=matrix(1,3,3,dimnames=list(c("a","b","c"),NULL))),Np=100))
174
154
Error : in 'enkf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
175
- In addition: Warning message:
176
- The provided object 'R' is available for use by POMP basic components.
177
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
178
- In a future release, this warning will become an error.
179
155
> enkf(enkf)
180
156
<object of class 'kalmand_pomp'>
181
157
> enkf(enkf,Np=100)
@@ -194,42 +170,18 @@ In eakf_internal(data, Np = Np, ..., verbose = verbose) :
194
170
Error : in 'eakf': 'emeasure' is a needed basic component.
195
171
> try(eakf(enkf,Np=100,vmeasure=NULL))
196
172
Error : in 'eakf': 'vmeasure' is a needed basic component.
197
- > try(eakf(enkf,C=matrix(1,2,4,dimnames=list(c("y2","y1"),NULL)),Np=100))
173
+ > try(eakf(enkf,userdata=list( C=matrix(1,2,4,dimnames=list(c("y2","y1"),NULL) )),Np=100))
198
174
Error : in 'eakf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
199
- In addition: Warning message:
200
- The provided object 'C' is available for use by POMP basic components.
201
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
202
- In a future release, this warning will become an error.
203
- > try(eakf(enkf,C=matrix(1,3,4,dimnames=list(c("a","b","c"),NULL)),Np=100))
175
+ > try(eakf(enkf,userdata=list(C=matrix(1,3,4,dimnames=list(c("a","b","c"),NULL))),Np=100))
204
176
Error : in 'eakf': number of observables returned by 'emeasure' does not match data.
205
- In addition: Warning message:
206
- The provided object 'C' is available for use by POMP basic components.
207
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
208
- In a future release, this warning will become an error.
209
- > try(eakf(enkf,R=matrix(1,1,1,dimnames=list(c("y1"),NULL)),Np=100))
177
+ > try(eakf(enkf,userdata=list(R=matrix(1,1,1,dimnames=list(c("y1"),NULL))),Np=100))
210
178
Error : in 'eakf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
211
- In addition: Warning message:
212
- The provided object 'R' is available for use by POMP basic components.
213
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
214
- In a future release, this warning will become an error.
215
- > try(eakf(enkf,R=matrix(1,2,2,dimnames=list(c("y2","y1"),NULL)),Np=100))
216
- Error : in 'eakf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
217
- In addition: Warning message:
218
- The provided object 'R' is available for use by POMP basic components.
219
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
220
- In a future release, this warning will become an error.
221
- > try(eakf(enkf,R=matrix(1,2,2,dimnames=list(c("a","b"),NULL)),Np=100))
179
+ > try(eakf(enkf,userdata=list(R=matrix(1,2,2,dimnames=list(c("y2","y1"),NULL))),Np=100))
222
180
Error : in 'eakf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
223
- In addition: Warning message:
224
- The provided object 'R' is available for use by POMP basic components.
225
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
226
- In a future release, this warning will become an error.
227
- > try(eakf(enkf,R=matrix(1,3,3,dimnames=list(c("a","b","c"),NULL)),Np=100))
181
+ > try(eakf(enkf,userdata=list(R=matrix(1,2,2,dimnames=list(c("a","b"),NULL)),Np=100)))
182
+ Error : in 'eakf': argument "Np" is missing, with no default
183
+ > try(eakf(enkf,userdata=list(R=matrix(1,3,3,dimnames=list(c("a","b","c"),NULL))),Np=100))
228
184
Error : in 'eakf': rownames of matrix returned by 'vmeasure' do not match those returned by 'emeasure'.
229
- In addition: Warning message:
230
- The provided object 'R' is available for use by POMP basic components.
231
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
232
- In a future release, this warning will become an error.
233
185
>
234
186
> invisible(enkf(pf,Np=1000,params=as.list(coef(pf))))
235
187
> invisible(eakf(pf,Np=1000,params=as.list(coef(pf))))
@@ -292,22 +244,14 @@ In a future release, this warning will become an error.
292
244
> try({
293
245
+ R <- matrix(c(1,0,1,0),2,2)
294
246
+ rownames(R) <- rownames(C)
295
- + enkf(pf,Np=1000,R=R)
247
+ + enkf(pf,Np=1000,userdata=list( R=R) )
296
248
+ })
297
249
Error : in 'enkf': degenerate 'vmeasure': the leading minor of order 2 is not positive
298
- In addition: Warning message:
299
- The provided object 'R' is available for use by POMP basic components.
300
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
301
- In a future release, this warning will become an error.
302
250
>
303
251
> try({
304
- + eakf(pf,Np=1000,R=R)
252
+ + eakf(pf,Np=1000,userdata=list( R=R) )
305
253
+ })
306
254
Error : in 'eakf': degenerate 'vmeasure': Lapack routine dgesv: system is exactly singular: U[2,2] = 0
307
- In addition: Warning message:
308
- The provided object 'R' is available for use by POMP basic components.
309
- This option is deprecated: use 'userdata' to specify the list of such objects explicitly.
310
- In a future release, this warning will become an error.
311
255
>
312
256
> try(enkf())
313
257
Error : in 'enkf': 'data' is a required argument.
0 commit comments