This functions gives weights to different ensemble members based on their likelihood during the analysis step. Then it adjusts the analysis mean estimates of state variables based on the estimated weights.

adj.ens(Pf, X, mu.f, mu.a, Pa)

Arguments

Pf

A cov matrix of forecast state variables.

X

Dataframe or matrix of forecast state variables for different ensembles.

mu.f

A vector with forecast mean estimates of state variables.

mu.a

A vector with analysis mean estimates of state variables.

Pa

The state estimate cov matrix of analysis.

Value

Returns a vector of adjusted analysis mean estimates of state variables.