Description Usage Arguments Value Examples
View source: R/simGeometricAVG.R
# Applies geometric average asian call outer control varites algorithm to the simulation. Gets expected value for the control variate using BS_Asian_geom function if IS algorithm is within the framework, the length of the q.ga will be different. Checks if IS algorithm is within the framework and applies IS weight accordingly.
1 | sim.GeometricAvg(zm, q.ga, ...)
|
zm |
A matrix with dimension d and length n. |
q.ga |
q function that sim.GeometricAvg function gets target vectors to apply variance reduction. |
... |
ellipsis parameter. different parameters can be passed depending on the problem. |
Updates Y value which stored in list 'results' and returns the list 'results' with updated Y value.
1 2 3 4 5 | sim.outer(n=1e3, d=3, q.outer = sim.GeometricAvg,
q.ga = myq_asian, K=100, ti=(1:3/12), r=0.03, sigma=0.3, S0=100)
sim.outer(n=1e3, d=1, q.outer = sim.AV, q.av = sim.GeometricAvg,
q.ga = myq_asian, K=90, ti=(1:1/12), r=0.03, sigma=0.3, S0=100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.