kalmanFilter.uncertainties
Set or return the proxy uncertainties for a Kalman filter
Syntax
Description
Provides error variances to the Kalman filter object. Overwrites any previous set of uncertainties. Each row holds the uncertainties for a particular site. Each column holds a unique set of error variances. If Rvar has a single column, uses the same set of error variances in all assimilation time steps. If the number of sets of variances matches the number of time steps, uses the indicated set of variances in each time step. For a given set of variances, a NaN value is permitted for a site if the site has no observations in that time step.
Provides error covariances to the Kalman filter object. Overwrites any previous set of uncertainties. Rcov should have one row and one column for each observation site. Each element along the third dimension holds a unique set of covariances. Each set of covariances must be a symmetric matrix. If there is a single set of covariances, uses the same covariances in all assimilation time steps. If the number of sets of covariances matches the number of time steps, uses the indicated set of covariances in each time step. For a given set of covariances, NaN values are permitted between two sites if at least one of the two sites is missing an observation in that time step.
Specify which set of R variances or covariances to use in each assimilation time steps. This syntax allows the number of sets of R values to differ from the number of time steps.
Indicate the type of uncertainties being provided to the particle filter. If “c”|”cov”|”covariance”|true, treats the input uncertainties as covariances. If “v”|”var”|”variance”|false, treats the uncertainties as variances.
Returns the current R uncertainties for the Kalman filter object, and indicates which set of R variances or covariances is used in each assimilation time step.
obj = obj.uncertainties(‘delete’)
Deletes any current uncertainties from the Kalman filter object.
Input Arguments
Rvar
Rcov
whichR
type
[“v”|”var”|”variance”|false]: Error variances
[“c”|”cov”|”covariance”|true]: Error covariances