powered by
Generate multiple stochastic time series from an LDS model. This is a convenient wrapper for one_LDS_rep.
LDS_rep( theta, u = NULL, v = NULL, years, num.reps = 100, mu = 0, exp.trans = TRUE )
A list of parameters: A, B, C, D, Q, R, x0, v0
Input matrix for the state equation (m_u rows, T columns)
Input matrix for the output equation (m_v rows, T columns)
The years of the study horizon
The number of stochastic replicates#'
Mean of the log-transformed streamflow process
Whether exponential transformation back to the streamflow space is required. If TRUE, both Y and Q are returned, otherwise only Y.
Same as one_LDS_rep, but the data.table consists of multiple replicates.
# NOT RUN { LDS_rep(theta, t(NPpc), t(NPpc), 1200:2012, num.reps = 10, mu = mean(log(NPannual$Qa))) # }
Run the code above in your browser using DataLab