# \donttest{
# Example calls with realistic arguments
# Financial options using an Euler-Maruyama discretisation
tst <- mlmc.test(opre_l, N = 2000000,
L = 5, N0 = 1000,
eps.v = c(0.005, 0.01, 0.02, 0.05, 0.1),
Lmin = 2, Lmax = 6,
option = 1)
tst
plot(tst)
# Financial options using a Milstein discretisation
tst <- mlmc.test(mcqmc06_l, N = 20000,
L = 8, N0 = 200,
eps.v = c(0.005, 0.01, 0.02, 0.05, 0.1),
Lmin = 2, Lmax = 10,
option = 1)
tst
plot(tst)
# }
# Toy versions for CRAN tests
tst <- mlmc.test(opre_l, N = 10000,
L = 5, N0 = 1000,
eps.v = c(0.025, 0.1),
Lmin = 2, Lmax = 6,
option = 1)
tst <- mlmc.test(mcqmc06_l, N = 10000,
L = 8, N0 = 1000,
eps.v = c(0.025, 0.1),
Lmin = 2, Lmax = 10,
option = 1)
Run the code above in your browser using DataLab