public class LIBORVolatilityModelTwoParameterExponentialForm extends LIBORVolatilityModel
Constructor and Description |
---|
LIBORVolatilityModelTwoParameterExponentialForm(TimeDiscretizationInterface timeDiscretization,
TimeDiscretizationInterface liborPeriodDiscretization,
double a,
double b)
Creates the volatility model σi(tj) = a * exp(-b (Ti-tj))
|
LIBORVolatilityModelTwoParameterExponentialForm(TimeDiscretizationInterface timeDiscretization,
TimeDiscretizationInterface liborPeriodDiscretization,
double a,
double b,
boolean isCalibrateable)
Creates the volatility model σi(tj) = a * exp(-b (Ti-tj))
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
double[] |
getParameter() |
RandomVariable |
getVolatility(int timeIndex,
int liborIndex)
Implement this method to complete the implementation.
|
void |
setParameter(double[] parameter) |
getLiborPeriodDiscretization, getTimeDiscretization
public LIBORVolatilityModelTwoParameterExponentialForm(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, double a, double b)
timeDiscretization
- The simulation time discretization tj.liborPeriodDiscretization
- The period time discretization Ti.a
- The parameter a: an initial volatility level.b
- The parameter b: exponential decay of the volatility.public LIBORVolatilityModelTwoParameterExponentialForm(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, double a, double b, boolean isCalibrateable)
timeDiscretization
- The simulation time discretization tj.liborPeriodDiscretization
- The period time discretization Ti.a
- The parameter a: an initial volatility level.b
- The parameter b: exponential decay of the volatility.isCalibrateable
- Set this to true, if the parameters are available for calibration.public double[] getParameter()
getParameter
in class LIBORVolatilityModel
public void setParameter(double[] parameter)
setParameter
in class LIBORVolatilityModel
public RandomVariable getVolatility(int timeIndex, int liborIndex)
LIBORVolatilityModel
getVolatility
in class LIBORVolatilityModel
timeIndex
- The time index (for timeDiscretization)liborIndex
- The libor index (for liborPeriodDiscretization)public Object clone()
clone
in class LIBORVolatilityModel
Copyright © 2018. All rights reserved.