Class LocalVolSurface
- java.lang.Object
-
- org.jquantlib.termstructures.AbstractTermStructure
-
- org.jquantlib.termstructures.volatilities.VolatilityTermStructure
-
- org.jquantlib.termstructures.LocalVolTermStructure
-
- org.jquantlib.termstructures.volatilities.LocalVolSurface
-
- All Implemented Interfaces:
- Extrapolator, TermStructure, Observable, Observer, PolymorphicVisitable
public class LocalVolSurface extends LocalVolTermStructure
Local volatility surface derived from a Black vol surfaceFor details about this implementation refer to "Stochastic Volatility and Local Volatility" in "Case Studies and Financial Modelling Course Notes," by Jim Gatheral, Fall Term, 2003
- See Also:
- This article
-
-
Constructor Summary
Constructors Constructor and Description LocalVolSurface(Handle<BlackVolTermStructure> blackTS, Handle<YieldTermStructure> riskFreeTS, Handle<YieldTermStructure> dividendTS, double underlying)LocalVolSurface(Handle<BlackVolTermStructure> blackTS, Handle<YieldTermStructure> riskFreeTS, Handle<YieldTermStructure> dividendTS, Handle<? extends Quote> underlying)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaccept(PolymorphicVisitor pv)This method is intended to extend the semantics of methodVisitable.accept(Visitor)DayCounterdayCounter()Return the day counter used for date/double conversionDatemaxDate()doublemaxStrike()The maximum strike for which the term structure can return volsdoubleminStrike()The minimum strike for which the term structure can return volsDatereferenceDate()Returns the Date at which discount = 1.0 and/or variance = 0.0-
Methods inherited from class org.jquantlib.termstructures.LocalVolTermStructure
localVol, localVol, localVol
-
Methods inherited from class org.jquantlib.termstructures.volatilities.VolatilityTermStructure
businessDayConvention, optionDateFromTenor
-
Methods inherited from class org.jquantlib.termstructures.AbstractTermStructure
addObserver, allowsExtrapolation, calendar, countObservers, deleteObserver, deleteObservers, disableExtrapolation, enableExtrapolation, getObservers, maxTime, notifyObservers, notifyObservers, settlementDays, timeFromReference, update
-
-
-
-
Constructor Detail
-
LocalVolSurface
public LocalVolSurface(Handle<BlackVolTermStructure> blackTS, Handle<YieldTermStructure> riskFreeTS, Handle<YieldTermStructure> dividendTS, Handle<? extends Quote> underlying)
-
LocalVolSurface
public LocalVolSurface(Handle<BlackVolTermStructure> blackTS, Handle<YieldTermStructure> riskFreeTS, Handle<YieldTermStructure> dividendTS, double underlying)
-
-
Method Detail
-
referenceDate
public final Date referenceDate()
Description copied from interface:TermStructureReturns the Date at which discount = 1.0 and/or variance = 0.0- Specified by:
referenceDatein interfaceTermStructure- Overrides:
referenceDatein classAbstractTermStructure
-
dayCounter
public final DayCounter dayCounter()
Description copied from interface:TermStructureReturn the day counter used for date/double conversion- Specified by:
dayCounterin interfaceTermStructure- Overrides:
dayCounterin classAbstractTermStructure- Returns:
- the day counter used for date/double conversion
-
maxDate
public final Date maxDate()
- Returns:
- the latest date for which the curve can return values
-
minStrike
public final double minStrike()
Description copied from class:VolatilityTermStructureThe minimum strike for which the term structure can return vols- Specified by:
minStrikein classLocalVolTermStructure- Returns:
- the minimum strike for which the term structure can return vols
-
maxStrike
public final double maxStrike()
Description copied from class:VolatilityTermStructureThe maximum strike for which the term structure can return vols- Specified by:
maxStrikein classLocalVolTermStructure- 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- Overrides:
acceptin classLocalVolTermStructure- See Also:
PolymorphicVisitor#getVisitor(Class)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG