enkf | R Documentation |
A function to perform filtering using the ensemble Kalman filter of Evensen, G. (1994). This function is generalized to allow for an measurement covariance matrix that varies over time. This is useful if the measurement model varies with the state.
## S4 method for signature 'spatPomp'
enkf(data, Np, ..., verbose = getOption("spatPomp_verbose", FALSE))
data |
A |
Np |
The number of Monte Carlo particles used to approximate the filter distribution. |
... |
Additional arguments can be used to replace model components. |
verbose |
logical; if |
An object of class ‘enkfd_spatPomp’ that contains the estimate of the log likelihood
(via the loglik
attribute), algorithmic parameters used to run enkf()
. Also included
are estimated filter means, prediction means and forecasts that are generated during an enkf()
run.
1994
\Evensen2009
\Anderson2001
ienkf()
, igirf
, iubf
, ibpf
Other likelihood evaluation algorithms:
abf()
,
abfir()
,
bpfilter()
,
girf()
# Complete examples are provided in the package tests
## Not run:
# Create a simulation of a Brownian motion
b <- bm(U=2, N=5)
# Run EnKF
enkfd_bm <- enkf(b, Np = 20)
# Get a likelihood estimate
logLik(enkfd_bm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.