public class VolVolCube extends Object implements VolatilityCube
| Constructor and Description |
|---|
VolVolCube(String name,
LocalDate referenceDate,
String referenceCubeName,
Schedule schedule,
double[] initialSwapRates)
Create the volvol cube.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCorrelationDecay()
Return the correlation decay parameter of the cube.
|
double |
getIborOisDecorrelation()
Return the IBOR vs OIS decorrelation parameter.
|
double |
getLowestStrike(VolatilityCubeModel model)
Returns the lowest possible value of strike that can be evaluated by this cube.
|
String |
getName()
Returns the name of the volatility cube.
|
Map<String,Object> |
getParameters()
Returns a map with all implementation dependent parameters of this volatility cube.
|
String |
getReferenceCubeName() |
LocalDate |
getReferenceDate()
Return the reference date of this cube, i.e. the date
associated with t=0.
|
double |
getValue(double tenorLength,
double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
Return the volatility at the specified coordinates in the desired quotation.
|
double |
getValue(VolatilityCubeModel model,
double termination,
double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
Return the volatility at the specified coordinates in the desired quotation.
|
String |
toString() |
public VolVolCube(String name, LocalDate referenceDate, String referenceCubeName, Schedule schedule, double[] initialSwapRates)
name - The name of the cube.referenceDate - The referenceDate of the cube.referenceCubeName - The name of the underlying cube.schedule - The schedule of the swap rate.initialSwapRates - Initial swap rates of all sub-tenors.public double getValue(VolatilityCubeModel model, double termination, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)
VolatilityCubegetValue in interface VolatilityCubemodel - A model providing context.termination - End date of the underlying.maturity - Maturity date of the option.strike - Strike rate of the option.quotingConvention - Desired quoting convention.public String getName()
VolatilityCubegetName in interface VolatilityCubepublic LocalDate getReferenceDate()
VolatilityCubegetReferenceDate in interface VolatilityCubepublic String getReferenceCubeName()
public double getValue(double tenorLength,
double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
VolatilityCubegetValue in interface VolatilityCubetenorLength - End date of the underlying.maturity - Maturity date of the option.strike - Strike rate of the option.quotingConvention - Desired quoting convention.public double getCorrelationDecay()
VolatilityCubegetCorrelationDecay in interface VolatilityCubepublic Map<String,Object> getParameters()
VolatilityCubegetParameters in interface VolatilityCubepublic double getLowestStrike(VolatilityCubeModel model)
VolatilityCubegetLowestStrike in interface VolatilityCubemodel - A model for context.public double getIborOisDecorrelation()
VolatilityCubegetIborOisDecorrelation in interface VolatilityCubeCopyright © 2019. All rights reserved.