public class SABRVolatilityCube extends Object implements VolatilityCube, Serializable
| Constructor and Description |
|---|
SABRVolatilityCube(String name,
LocalDate referenceDate,
DataTable swapRateTable,
double sabrDisplacement,
double sabrBeta,
DataTable rhoTable,
DataTable baseVolTable,
DataTable volvolTable,
double correlationDecay)
Create the cube.
|
SABRVolatilityCube(String name,
LocalDate referenceDate,
DataTable swapRateTable,
double sabrDisplacement,
double sabrBeta,
DataTable rhoTable,
DataTable baseVolTable,
DataTable volvolTable,
double correlationDecay,
double iborOisDecorrelation)
Create the cube.
|
| Modifier and Type | Method and Description |
|---|---|
DataTable |
getBaseVolTable() |
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.
|
LocalDate |
getReferenceDate()
Return the reference date of this cube, i.e. the date
associated with t=0.
|
DataTable |
getRhoTable() |
DataTable |
getUnderlyingTable() |
double |
getValue(double termination,
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.
|
DataTable |
getVolvolTable() |
public SABRVolatilityCube(String name, LocalDate referenceDate, DataTable swapRateTable, double sabrDisplacement, double sabrBeta, DataTable rhoTable, DataTable baseVolTable, DataTable volvolTable, double correlationDecay)
name - The name of the cube.referenceDate - The reference date of the cube.swapRateTable - Table containing base swap rates.sabrDisplacement - Displacement for the entire cube.sabrBeta - Beta for the entire cube.rhoTable - Table containing rhos.baseVolTable - Table containing initial volatilities.volvolTable - Table containing volvols.correlationDecay - The correlation decay parameters of this cube.public SABRVolatilityCube(String name, LocalDate referenceDate, DataTable swapRateTable, double sabrDisplacement, double sabrBeta, DataTable rhoTable, DataTable baseVolTable, DataTable volvolTable, double correlationDecay, double iborOisDecorrelation)
name - The name of the cube.referenceDate - The reference date of the cube.swapRateTable - Table containing base swap rates.sabrDisplacement - Displacement for the entire cube.sabrBeta - Beta for the entire cube.rhoTable - Table containing rhos.baseVolTable - Table containing initial volatilities.volvolTable - Table containing volvols.correlationDecay - The correlation decay parameters of this cube.iborOisDecorrelation - The ibor ois decorrelation parameter of this cube.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 double getValue(double termination,
double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
VolatilityCubegetValue in interface VolatilityCubetermination - 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 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 VolatilityCubepublic DataTable getUnderlyingTable()
public DataTable getRhoTable()
public DataTable getBaseVolTable()
public DataTable getVolvolTable()
Copyright © 2019. All rights reserved.