Class ConstantLocalVolatility
java.lang.Object
net.finmath.marketdata.model.volatilities.ConstantLocalVolatility
- All Implemented Interfaces:
LocalVolatility
Constant local volatility, representing the classical Black-Scholes case.
- Author:
- Alessandro Gnoatto
-
Constructor Summary
ConstructorsConstructorDescriptionConstantLocalVolatility(double volatility) Creates a constant local volatility. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue(double time, double assetValue) Returns the local volatilitysigma(t, S).doubleReturns the constant volatility.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LocalVolatility
getLocalVolatility, getLocalVolatility, getValue
-
Constructor Details
-
ConstantLocalVolatility
public ConstantLocalVolatility(double volatility) Creates a constant local volatility.- Parameters:
volatility- The volatility.
-
-
Method Details
-
getValue
public double getValue(double time, double assetValue) Description copied from interface:LocalVolatilityReturns the local volatilitysigma(t, S).- Specified by:
getValuein interfaceLocalVolatility- Parameters:
time- The evaluation time.assetValue- The asset value.- Returns:
- The local volatility.
-
getVolatility
public double getVolatility()Returns the constant volatility.- Returns:
- The volatility.
-