Package jdistlib.finance
Class ReferenceOptions
java.lang.Object
jdistlib.finance.ReferenceOptions
Reference Black-Scholes/Bachelier transformations and checked inversion.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublebachelier(double forward, double strike, double discount, double maturity, double normalVolatility, boolean call) static doubleblackScholes(double forward, double strike, double discount, double maturity, double volatility, boolean call) static ImpliedVolatilityResultimpliedBachelier(double price, double forward, double strike, double discount, double maturity, boolean call) static ImpliedVolatilityResultimpliedBlackScholes(double price, double forward, double strike, double discount, double maturity, boolean call)
-
Method Details
-
blackScholes
public static double blackScholes(double forward, double strike, double discount, double maturity, double volatility, boolean call) -
bachelier
public static double bachelier(double forward, double strike, double discount, double maturity, double normalVolatility, boolean call) -
impliedBlackScholes
public static ImpliedVolatilityResult impliedBlackScholes(double price, double forward, double strike, double discount, double maturity, boolean call) -
impliedBachelier
public static ImpliedVolatilityResult impliedBachelier(double price, double forward, double strike, double discount, double maturity, boolean call)
-