org.jquantlib.termstructures.volatilities.optionlet
Class OptionletVolatilityStructure
- java.lang.Object
-
- org.jquantlib.termstructures.AbstractTermStructure
-
- org.jquantlib.termstructures.volatilities.VolatilityTermStructure
-
- org.jquantlib.termstructures.volatilities.optionlet.OptionletVolatilityStructure
-
- All Implemented Interfaces:
- Extrapolator, TermStructure, Observable, Observer
- Direct Known Subclasses:
- CapletVarianceCurve, ConstantOptionletVolatility
public abstract class OptionletVolatilityStructure extends VolatilityTermStructure
Optionlet (caplet/floorlet) volatility structureThis class is purely abstract and defines the interface of concrete structures which will be derived from this one.
-
-
Constructor Summary
Constructors Constructor and Description OptionletVolatilityStructure(Calendar cal, BusinessDayConvention bdc)OptionletVolatilityStructure(Calendar cal, BusinessDayConvention bdc, DayCounter dc)OptionletVolatilityStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc)initialize with a fixed reference dateOptionletVolatilityStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc, DayCounter dc)initialize with a fixed reference dateOptionletVolatilityStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc)calculate the reference date based on the global evaluation dateOptionletVolatilityStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc, DayCounter dc)calculate the reference date based on the global evaluation date
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleblackVariance(Date optionDate, double strike)returns the Black variance for a given option date and strike ratedoubleblackVariance(Date optionDate, double strike, boolean extrapolate)doubleblackVariance(double optionTime, double strike)returns the Black variance for a given option time and strike ratedoubleblackVariance(double optionTime, double strike, boolean extrapolate)doubleblackVariance(Period optionTenor, double strike)returns the Black variance for a given option tenor and strike ratedoubleblackVariance(Period optionTenor, double strike, boolean extrapolate)SmileSectionsmileSection(Date optionDate)returns the smile for a given option dateSmileSectionsmileSection(Date optionDate, boolean extr)SmileSectionsmileSection(double optionTime)returns the smile for a given option timeSmileSectionsmileSection(double optionTime, boolean extrapolate)SmileSectionsmileSection(Period optionTenor)returns the smile for a given option tenorSmileSectionsmileSection(Period optionTenor, boolean extrapolate)doublevolatility(Date optionDate, double strike)returns the volatility for a given option date and strike ratedoublevolatility(Date optionDate, double strike, boolean extrapolate)doublevolatility(double optionTime, double strike)returns the volatility for a given option time and strike ratedoublevolatility(double optionTime, double strike, boolean extrapolate)doublevolatility(Period optionTenor, double strike)returns the volatility for a given option tenor and strike ratedoublevolatility(Period optionTenor, double strike, boolean extrapolate)doublevolatilityImpl(Date optionDate, double strike)-
Methods inherited from class org.jquantlib.termstructures.volatilities.VolatilityTermStructure
businessDayConvention, maxStrike, minStrike, optionDateFromTenor
-
Methods inherited from class org.jquantlib.termstructures.AbstractTermStructure
addObserver, allowsExtrapolation, calendar, countObservers, dayCounter, deleteObserver, deleteObservers, disableExtrapolation, enableExtrapolation, getObservers, maxTime, notifyObservers, notifyObservers, referenceDate, settlementDays, timeFromReference, update
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jquantlib.termstructures.TermStructure
maxDate
-
-
-
-
Constructor Detail
-
OptionletVolatilityStructure
public OptionletVolatilityStructure(Calendar cal, BusinessDayConvention bdc)
-
OptionletVolatilityStructure
public OptionletVolatilityStructure(Calendar cal, BusinessDayConvention bdc, DayCounter dc)
-
OptionletVolatilityStructure
public OptionletVolatilityStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc)
initialize with a fixed reference date
-
OptionletVolatilityStructure
public OptionletVolatilityStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc, DayCounter dc)
initialize with a fixed reference date
-
OptionletVolatilityStructure
public OptionletVolatilityStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc, DayCounter dc)calculate the reference date based on the global evaluation date
-
OptionletVolatilityStructure
public OptionletVolatilityStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc)calculate the reference date based on the global evaluation date
-
-
Method Detail
-
volatility
public double volatility(Period optionTenor, double strike)
returns the volatility for a given option tenor and strike rate
-
volatility
public double volatility(Date optionDate, double strike)
returns the volatility for a given option date and strike rate
-
volatility
public double volatility(double optionTime, double strike)returns the volatility for a given option time and strike rate
-
blackVariance
public double blackVariance(Period optionTenor, double strike)
returns the Black variance for a given option tenor and strike rate
-
blackVariance
public double blackVariance(Date optionDate, double strike)
returns the Black variance for a given option date and strike rate
-
blackVariance
public double blackVariance(double optionTime, double strike)returns the Black variance for a given option time and strike rate
-
smileSection
public SmileSection smileSection(Period optionTenor)
returns the smile for a given option tenor
-
smileSection
public SmileSection smileSection(Date optionDate)
returns the smile for a given option date
-
smileSection
public SmileSection smileSection(double optionTime)
returns the smile for a given option time
-
volatility
public double volatility(Period optionTenor, double strike, boolean extrapolate)
-
blackVariance
public double blackVariance(Period optionTenor, double strike, boolean extrapolate)
-
smileSection
public SmileSection smileSection(Period optionTenor, boolean extrapolate)
-
blackVariance
public double blackVariance(Date optionDate, double strike, boolean extrapolate)
-
blackVariance
public double blackVariance(double optionTime, double strike, boolean extrapolate)
-
volatility
public double volatility(Date optionDate, double strike, boolean extrapolate)
-
volatility
public double volatility(double optionTime, double strike, boolean extrapolate)
-
smileSection
public SmileSection smileSection(Date optionDate, boolean extr)
-
smileSection
public SmileSection smileSection(double optionTime, boolean extrapolate)
-
volatilityImpl
public double volatilityImpl(Date optionDate, double strike)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG