public class ExponentialDecayLocalVolatilityModel extends AbstractLIBORCovarianceModelParametric
| Constructor and Description |
|---|
ExponentialDecayLocalVolatilityModel(AbstractLIBORCovarianceModelParametric covarianceModel,
double decay,
boolean isCalibrateable)
Exponential decay model build on top of a standard covariance model.
|
ExponentialDecayLocalVolatilityModel(AbstractRandomVariableFactory randomVariableFactory,
AbstractLIBORCovarianceModelParametric covarianceModel,
double decay,
boolean isCalibrateable)
Exponential decay model build on top of a standard covariance model.
|
ExponentialDecayLocalVolatilityModel(AbstractRandomVariableFactory randomVariableFactory,
AbstractLIBORCovarianceModelParametric covarianceModel,
RandomVariable decay,
boolean isCalibrateable)
Exponential decay model build on top of a standard covariance model.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
AbstractLIBORCovarianceModelParametric |
getBaseCovarianceModel()
Returns the base covariance model, i.e., the model providing the factor loading F
such that this model's i-th factor loading is
exp(- a t) Fi(t)
where a is the decay parameter and
Fi is the factor loading from the given covariance model.
|
AbstractLIBORCovarianceModelParametric |
getCloneWithModifiedData(Map<String,Object> dataModified)
Returns a clone of this model where the specified properties have been modified.
|
AbstractLIBORCovarianceModelParametric |
getCloneWithModifiedParameters(double[] parameters)
Return an instance of this model using a new set of parameters.
|
AbstractLIBORCovarianceModelParametric |
getCloneWithModifiedParameters(RandomVariable[] parameters)
Return an instance of this model using a new set of parameters.
|
RandomVariable |
getDisplacement() |
RandomVariable[] |
getFactorLoading(int timeIndex,
int component,
RandomVariable[] realizationAtTimeIndex)
Return the factor loading for a given time index and component index.
|
RandomVariable |
getFactorLoadingPseudoInverse(int timeIndex,
int component,
int factor,
RandomVariable[] realizationAtTimeIndex)
Returns the pseudo inverse of the factor matrix.
|
RandomVariable[] |
getParameter()
Get the parameters of determining this parametric
covariance model.
|
double[] |
getParameterAsDouble()
Get the parameters of determining this parametric
covariance model.
|
getCloneCalibrated, getCloneCalibrated, getCloneCalibratedLegazy, toStringgetCovariance, getCovariance, getFactorLoading, getFactorLoading, getLiborPeriodDiscretization, getNumberOfFactors, getTimeDiscretizationequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCovariance, getCovariance, getFactorLoading, getFactorLoading, getLiborPeriodDiscretization, getNumberOfFactors, getTimeDiscretizationpublic ExponentialDecayLocalVolatilityModel(AbstractRandomVariableFactory randomVariableFactory, AbstractLIBORCovarianceModelParametric covarianceModel, RandomVariable decay, boolean isCalibrateable)
randomVariableFactory - A random variable factory (used when cloning with modifed parameters).covarianceModel - The given covariance model specifying the factor loadings F.decay - The decay a.isCalibrateable - If true, the parameter a is a free parameter. Note that the covariance model may have its own parameter calibration settings.public ExponentialDecayLocalVolatilityModel(AbstractRandomVariableFactory randomVariableFactory, AbstractLIBORCovarianceModelParametric covarianceModel, double decay, boolean isCalibrateable)
randomVariableFactory - A random variable factory (used for the given parameter and when cloning with modifed parameters).covarianceModel - The given covariance model specifying the factor loadings F.decay - The displacement a.isCalibrateable - If true, the parameter a is a free parameter. Note that the covariance model may have its own parameter calibration settings.public ExponentialDecayLocalVolatilityModel(AbstractLIBORCovarianceModelParametric covarianceModel, double decay, boolean isCalibrateable)
covarianceModel - The given covariance model specifying the factor loadings F.decay - The displacement a.isCalibrateable - If true, the parameter a is a free parameter. Note that the covariance model may have its own parameter calibration settings.public Object clone()
clone in class AbstractLIBORCovarianceModelParametricpublic AbstractLIBORCovarianceModelParametric getBaseCovarianceModel()
public RandomVariable[] getParameter()
AbstractLIBORCovarianceModelParametricgetParameter in class AbstractLIBORCovarianceModelParametricpublic double[] getParameterAsDouble()
AbstractLIBORCovarianceModelParametricgetParameterAsDouble in class AbstractLIBORCovarianceModelParametricpublic AbstractLIBORCovarianceModelParametric getCloneWithModifiedParameters(RandomVariable[] parameters)
AbstractLIBORCovarianceModelParametricgetCloneWithModifiedParameters in class AbstractLIBORCovarianceModelParametricparameters - The new set of parameters.public AbstractLIBORCovarianceModelParametric getCloneWithModifiedParameters(double[] parameters)
AbstractLIBORCovarianceModelParametricgetCloneWithModifiedParameters in class AbstractLIBORCovarianceModelParametricparameters - The new set of parameters.public RandomVariable[] getFactorLoading(int timeIndex, int component, RandomVariable[] realizationAtTimeIndex)
LIBORCovarianceModelgetFactorLoading in interface LIBORCovarianceModelgetFactorLoading in class AbstractLIBORCovarianceModeltimeIndex - The time index at which factor loading is requested.component - The index of the component i.realizationAtTimeIndex - The realization of the stochastic process (may be used to implement local volatility/covariance/correlation models).public RandomVariable getFactorLoadingPseudoInverse(int timeIndex, int component, int factor, RandomVariable[] realizationAtTimeIndex)
LIBORCovarianceModelgetFactorLoadingPseudoInverse in interface LIBORCovarianceModelgetFactorLoadingPseudoInverse in class AbstractLIBORCovarianceModeltimeIndex - The time index at which factor loading inverse is requested.component - The index of the component i.factor - The index of the factor j.realizationAtTimeIndex - The realization of the stochastic process (may be used to implement local volatility/covariance/correlation models).public RandomVariable getDisplacement()
public AbstractLIBORCovarianceModelParametric getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
LIBORCovarianceModeldataModified. If data is provided which is ignored by the model
no exception may be thrown.
Furthermore the structure of the covariance model has to match changed data.
A change of the time discretizations may requires a change in the parameters
but this function will just insert the new time discretization without
changing the parameters. An exception may not be thrown.getCloneWithModifiedData in interface LIBORCovarianceModelgetCloneWithModifiedData in class AbstractLIBORCovarianceModeldataModified - Key-value-map of parameters to modify.CalculationException - Thrown when the model could not be created.Copyright © 2019. All rights reserved.