View source: R/build_matrices.R
| BuildMatrices | R Documentation |
BuildMatrices takes physical parameters of the k-box model
differential equations and constructs continuous- and discrete-time model
matrices.
BuildMatrices(gamma, C, kappa, epsilon, sigma_eta, sigma_xi)
gamma |
stochastic forcing correlation parameter. |
C |
vector of box heat capacities. |
kappa |
vector of heat transfer coefficients. |
epsilon |
deep ocean heat uptake efficacy factor. |
sigma_eta |
stochastic forcing standard deviation parameter. |
sigma_xi |
standard deviation of stochastic temperature disturbances. |
BuildMatrices returns a list containing k-box model matrices:
A, B, Q, Ad, Bd, Qd, Gamma0, Cd.
SimStepData, FitKalman.
# set physical parameters
parameters <- list(
gamma = 2.2,
C = c(7.0, 80.0),
kappa = c(1.2, 0.75),
epsilon = 1.2,
sigma_eta = 0.54,
sigma_xi = 0.72
)
# build matrices
matrices <- with(parameters, {
BuildMatrices(gamma, C, kappa, epsilon, sigma_eta, sigma_xi)
})
# print output
print(matrices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.