Class LocalVolTermStructure
- java.lang.Object
-
- org.jquantlib.termstructures.AbstractTermStructure
-
- org.jquantlib.termstructures.volatilities.VolatilityTermStructure
-
- org.jquantlib.termstructures.LocalVolTermStructure
-
- All Implemented Interfaces:
- Extrapolator, TermStructure, Observable, Observer, PolymorphicVisitable
- Direct Known Subclasses:
- LocalConstantVol, LocalVolCurve, LocalVolSurface
public abstract class LocalVolTermStructure extends VolatilityTermStructure implements PolymorphicVisitable
Local volatility term structure base class
-
-
Constructor Summary
Constructors Constructor and Description LocalVolTermStructure()'default' constructorLocalVolTermStructure(Calendar cal)'default' constructorLocalVolTermStructure(Calendar cal, BusinessDayConvention bdc)'default' constructorLocalVolTermStructure(Calendar cal, BusinessDayConvention bdc, DayCounter dc)'default' constructorLocalVolTermStructure(Date referenceDate)initialize with a fixed reference dateLocalVolTermStructure(Date referenceDate, Calendar cal)initialize with a fixed reference dateLocalVolTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc)initialize with a fixed reference dateLocalVolTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc, DayCounter dc)initialize with a fixed reference dateLocalVolTermStructure(int settlementDays, Calendar cal)calculate the reference date based on the global evaluation dateLocalVolTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc)calculate the reference date based on the global evaluation dateLocalVolTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc, DayCounter dc)calculate the reference date based on the global evaluation date
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidaccept(PolymorphicVisitor pv)This method is intended to extend the semantics of methodVisitable.accept(Visitor)doublelocalVol(Date d, double underlyingLevel, boolean extrapolate)doublelocalVol(double t, double underlyingLevel)doublelocalVol(double t, double underlyingLevel, boolean extrapolate)abstract doublemaxStrike()The maximum strike for which the term structure can return volsabstract doubleminStrike()The minimum strike for which the term structure can return vols-
Methods inherited from class org.jquantlib.termstructures.volatilities.VolatilityTermStructure
businessDayConvention, 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
-
LocalVolTermStructure
public LocalVolTermStructure()
'default' constructor
-
LocalVolTermStructure
public LocalVolTermStructure(Calendar cal)
'default' constructor
-
LocalVolTermStructure
public LocalVolTermStructure(Calendar cal, BusinessDayConvention bdc)
'default' constructor
-
LocalVolTermStructure
public LocalVolTermStructure(Calendar cal, BusinessDayConvention bdc, DayCounter dc)
'default' constructor
-
LocalVolTermStructure
public LocalVolTermStructure(Date referenceDate)
initialize with a fixed reference date
-
LocalVolTermStructure
public LocalVolTermStructure(Date referenceDate, Calendar cal)
initialize with a fixed reference date
-
LocalVolTermStructure
public LocalVolTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc)
initialize with a fixed reference date
-
LocalVolTermStructure
public LocalVolTermStructure(Date referenceDate, Calendar cal, BusinessDayConvention bdc, DayCounter dc)
initialize with a fixed reference date
-
LocalVolTermStructure
public LocalVolTermStructure(int settlementDays, Calendar cal)calculate the reference date based on the global evaluation date
-
LocalVolTermStructure
public LocalVolTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc)calculate the reference date based on the global evaluation date
-
LocalVolTermStructure
public LocalVolTermStructure(int settlementDays, Calendar cal, BusinessDayConvention bdc, DayCounter dc)calculate the reference date based on the global evaluation date
-
-
Method Detail
-
localVol
public final double localVol(Date d, double underlyingLevel, boolean extrapolate)
-
localVol
public final double localVol(double t, double underlyingLevel)
-
localVol
public final double localVol(double t, double underlyingLevel, boolean extrapolate)
-
minStrike
public abstract double minStrike()
Description copied from class:VolatilityTermStructureThe minimum strike for which the term structure can return vols- Specified by:
minStrikein classVolatilityTermStructure- Returns:
- the minimum strike for which the term structure can return vols
-
maxStrike
public abstract double maxStrike()
Description copied from class:VolatilityTermStructureThe maximum strike for which the term structure can return vols- Specified by:
maxStrikein classVolatilityTermStructure- Returns:
- the maximum strike for which the term structure can return vols
-
accept
public void accept(PolymorphicVisitor pv)
Description copied from interface:PolymorphicVisitableThis method is intended to extend the semantics of methodVisitable.accept(Visitor)In a conventional Visitor design pattern, the
acceptmethod is called when access to visit a data structure is requested. AVisitorobject is passed as argument in case permission is granted to thatVisitorto access the data structure. Obviously,Visitors andVisitables work in pairs and the class which provides the data structure to be visited also implementsVisitablein order to properly grant access when the expectedVisitoris received.In the case of a
PolymorphicVisitable, aPolymorphicVisitoris passed instead of aVisitor. APolymorphicVisitoris in fact, a composition ofVisitors and not only a singleVisitor. APolymorphicVisitoris responsible for returning the correctVisitorresponsible for processing a certain data structure.The initial design of pairs made of <
Visitor,Visitable> is extended to a concept of a matrix made of multipleVisitors against multipleVisitables. Every class which implementsPolymorphicVisitablepasses different data structures when queryingPolymorphicVisitors.- Specified by:
acceptin interfacePolymorphicVisitable- See Also:
PolymorphicVisitor#getVisitor(Class)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG