powered by
Option generating function (OGF) of ecd. For call, it is integration of \((e^z-e^k) P(z)\) for z from k to Inf. For put, it is integration of \((e^k-e^z) P(z)\) for z from -Inf to k.
z
k
Inf
-Inf
ecd.ogf(object, k, otype = "c", unit.sigma = FALSE, verbose = FALSE)
an object of ecd class
a numeric vector of log-strike
character, specifying option type: c or p.
c
p
logical, transforming to unit sigma to achieve greater stability.
logical, display timing information, for debugging purpose.
The option price normalized by underlying
# NOT RUN { d <- ecd(0, 0, sigma=0.01) k <- seq(-0.1, 0.1, by=0.01) ecd.ogf(d, k, "c") # }
Run the code above in your browser using DataLab