public class StaticVolatilityCube extends Object implements VolatilityCube
| Constructor and Description |
|---|
StaticVolatilityCube(String name,
LocalDate referenceDate,
double value)
Create the cube.
|
StaticVolatilityCube(String name,
LocalDate referenceDate,
double correlationDecay,
double value)
Create the cube.
|
StaticVolatilityCube(String name,
LocalDate referenceDate,
double correlationDecay,
double iborOisDecorrelation,
double value)
Create the 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.
|
LocalDate |
getReferenceDate()
Return the reference date of this cube, i.e. the date
associated with t=0.
|
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.
|
public StaticVolatilityCube(String name, LocalDate referenceDate, double correlationDecay, double iborOisDecorrelation, double value)
name - The name of the cube.referenceDate - The reference date of the cube.correlationDecay - The correlation decay parameter of the cube.iborOisDecorrelation - The ibor ois decorrelation parameter of the cube.value - The value this cube is to return.public StaticVolatilityCube(String name, LocalDate referenceDate, double correlationDecay, double value)
name - The name of the cube.referenceDate - The reference date of the cube.correlationDecay - The correlation decay parameter of the cube.value - The value this cube is to return.public StaticVolatilityCube(String name, LocalDate referenceDate, double value)
name - The name of the cube.referenceDate - The reference date of the cube.value - The value this cube is to return.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 double getIborOisDecorrelation()
VolatilityCubegetIborOisDecorrelation in interface VolatilityCubepublic Map<String,Object> getParameters()
VolatilityCubegetParameters in interface VolatilityCubepublic double getLowestStrike(VolatilityCubeModel model)
VolatilityCubegetLowestStrike in interface VolatilityCubemodel - A model for context.Copyright © 2019. All rights reserved.