Code covered by the BSD License
-
BS(S0,t,K,T,Rgrow,Rdisc,sigma...
-
JDimpv(S0, X, r, T, a, b, lam...
-
JDprice(S0, X, r, T, vol, a, ...
JDprice Log-Uniform Jump-Diffusion price.
-
View all files
from
Log-Uniform Jump-Diffusion Model
by Rodolphe Sitter
European call option price and implied volatility for a Log-Uniform Jump-Diffusion model.
|
| BS(S0,t,K,T,Rgrow,Rdisc,sigma)
|
function Call = BS(S0,t,K,T,Rgrow,Rdisc,sigma)
F = S0.*exp(Rgrow.*T);
d1 = log(F./K)./(sigma.*sqrt(T-t)) + sigma.*sqrt(T)/2;
d2 = log(F./K)./(sigma.*sqrt(T-t)) - sigma.*sqrt(T)/2;
Call = exp(-Rdisc.*T).*(F.*normcdf(d1) - K.*normcdf(d2));
% Put=Call+K.*exp(-Rdisc.*T)-S0;
|
|
Contact us at files@mathworks.com