View source: R/03_simulate_paths.R
| simulate_weather_paths | R Documentation |
Generates discretized Monte Carlo sample trajectories of daily average temperatures.
simulate_weather_paths(
n_paths = 5000,
days = 365,
kappa = 0.08,
sigma_0 = 2.5,
lambda_0 = 0.05,
lambda_1 = 0.03,
mu_jump = -3,
sigma_jump = 1.5,
baseline_temp = 14.5,
amplitude_temp = 11.2
)
n_paths |
Integer count of simulation paths. |
days |
Horizon length in days (default 365). |
kappa |
Mean-reversion speed. |
sigma_0 |
Baseline volatility. |
lambda_0 |
Baseline jump intensity. |
lambda_1 |
Amplitude of dynamic seasonal jump intensity. |
mu_jump |
Mean jump magnitude. |
sigma_jump |
Volatility of jump magnitude. |
baseline_temp |
Baseline temperature parameter A. |
amplitude_temp |
Seasonal temperature amplitude. |
An (n_paths x days) matrix of simulated daily temperatures.
paths <- simulate_weather_paths(n_paths = 50, days = 30)
dim(paths)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.