public class BlendedLocalVolatilityModel extends AbstractLIBORCovarianceModelParametric
| Constructor and Description |
|---|
BlendedLocalVolatilityModel(AbstractLIBORCovarianceModelParametric covarianceModel,
double displacement,
boolean isCalibrateable)
Displaced diffusion model build on top of a standard covariance model.
|
BlendedLocalVolatilityModel(AbstractLIBORCovarianceModelParametric covarianceModel,
ForwardCurveInterface forwardCurve,
double displacement,
boolean isCalibrateable)
Displaced diffusion 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
(a Li,0 + (1-a)Li(t)) Fi(t)
where a is the displacement and Li is
the realization of the i-th component of the stochastic process and
Fi is the factor loading loading from the given covariance model.
|
RandomVariableInterface[] |
getFactorLoading(int timeIndex,
int component,
RandomVariableInterface[] realizationAtTimeIndex)
Return the factor loading for a given time index and component index.
|
RandomVariable |
getFactorLoadingPseudoInverse(int timeIndex,
int component,
int factor,
RandomVariableInterface[] realizationAtTimeIndex)
Returns the pseudo inverse of the factor matrix.
|
double[] |
getParameter()
Get the parameters of determining this parametric
covariance model.
|
void |
setParameter(double[] parameter) |
getCloneCalibrated, getCloneCalibrated, getCloneWithModifiedParameters, toStringgetCovariance, getCovariance, getFactorLoading, getFactorLoading, getLiborPeriodDiscretization, getNumberOfFactors, getTimeDiscretizationpublic BlendedLocalVolatilityModel(AbstractLIBORCovarianceModelParametric covarianceModel, ForwardCurveInterface forwardCurve, double displacement, boolean isCalibrateable)
covarianceModel - The given covariance model specifying the factor loadings F.forwardCurve - The given forward curve L0displacement - 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 BlendedLocalVolatilityModel(AbstractLIBORCovarianceModelParametric covarianceModel, double displacement, boolean isCalibrateable)
covarianceModel - The given covariance model specifying the factor loadings F.displacement - 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 double[] getParameter()
AbstractLIBORCovarianceModelParametricgetParameter in class AbstractLIBORCovarianceModelParametricpublic void setParameter(double[] parameter)
setParameter in class AbstractLIBORCovarianceModelParametricpublic RandomVariableInterface[] getFactorLoading(int timeIndex, int component, RandomVariableInterface[] realizationAtTimeIndex)
AbstractLIBORCovarianceModelgetFactorLoading 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, RandomVariableInterface[] realizationAtTimeIndex)
AbstractLIBORCovarianceModelgetFactorLoadingPseudoInverse 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).Copyright © 2015. All rights reserved.