public class LIBORCovarianceModelStochasticVolatility extends AbstractLIBORCovarianceModelParametric
BrownianMotionInterface. This can be used to generate correlations to
other objects. If you like to reuse a factor of another Brownian motion use a
BrownianMotionView
to delegate \( ( \mathrm{d} W_{1}(t) , \mathrm{d} W_{2}(t) ) \) to a different object.
The parameter of this model is a joint parameter vector, consisting
of the parameter vector of the given base covariance model and
appending the parameters ν and ρ at the end.
If this model is not calibrateable, its parameter vector is that of the
covariance model, i.e., ν and ρ will be not
part of the calibration.
For an illustration of its usage see the associated unit test.| Constructor and Description |
|---|
LIBORCovarianceModelStochasticVolatility(AbstractLIBORCovarianceModelParametric covarianceModel,
BrownianMotionInterface brownianMotion,
double nu,
double rho,
boolean isCalibrateable)
Create a modification of a given
AbstractLIBORCovarianceModelParametric with a stochastic volatility scaling. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
RandomVariableInterface[] |
getFactorLoading(int timeIndex,
int component,
RandomVariableInterface[] realizationAtTimeIndex)
Return the factor loading for a given time index and component index.
|
RandomVariableInterface |
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 LIBORCovarianceModelStochasticVolatility(AbstractLIBORCovarianceModelParametric covarianceModel, BrownianMotionInterface brownianMotion, double nu, double rho, boolean isCalibrateable)
AbstractLIBORCovarianceModelParametric with a stochastic volatility scaling.covarianceModel - A given AbstractLIBORCovarianceModelParametric.brownianMotion - An object implementing BrownianMotionInterface with at least two factors. This class uses the first two factors, but you may use BrownianMotionView to change this.nu - The initial value for ν, the volatility of the volatility.rho - The initial value for ρ the correlation to the first factor.isCalibrateable - If true, the parameters ν and ρ are parameters. Note that the covariance model (covarianceModel) may have its own parameter calibration settings.public double[] getParameter()
AbstractLIBORCovarianceModelParametricgetParameter in class AbstractLIBORCovarianceModelParametricpublic void setParameter(double[] parameter)
setParameter in class AbstractLIBORCovarianceModelParametricpublic Object clone()
clone 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 RandomVariableInterface 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.