public class LIBORCovarianceModelFromVolatilityAndCorrelation extends AbstractLIBORCovarianceModelParametric
LIBORVolatilityModel and a correlation model
implementing LIBORCorrelationModel.
The model parameters are given by the concatenation of the
parameters of the LIBORVolatilityModel and
the parameters of the LIBORCorrelationModel,
in this ordering
| Constructor and Description |
|---|
LIBORCovarianceModelFromVolatilityAndCorrelation(TimeDiscretizationInterface timeDiscretization,
TimeDiscretizationInterface liborPeriodDiscretization,
LIBORVolatilityModel volatilityModel,
LIBORCorrelationModel correlationModel) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
LIBORCorrelationModel |
getCorrelationModel() |
RandomVariableInterface |
getCovariance(int timeIndex,
int component1,
int component2,
RandomVariableInterface[] realizationAtTimeIndex)
Returns the instantaneous covariance calculated from factor loadings.
|
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.
|
LIBORVolatilityModel |
getVolatilityModel() |
void |
setParameter(double[] parameter) |
getCloneCalibrated, getCloneCalibrated, getCloneWithModifiedParameters, toStringgetCovariance, getFactorLoading, getFactorLoading, getLiborPeriodDiscretization, getNumberOfFactors, getTimeDiscretizationpublic LIBORCovarianceModelFromVolatilityAndCorrelation(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, LIBORVolatilityModel volatilityModel, LIBORCorrelationModel correlationModel)
public 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).public RandomVariableInterface getCovariance(int timeIndex, int component1, int component2, RandomVariableInterface[] realizationAtTimeIndex)
AbstractLIBORCovarianceModelgetCovariance in class AbstractLIBORCovarianceModeltimeIndex - The time index at which covariance is requested.component1 - Index of component i.component2 - Index of component j.realizationAtTimeIndex - The realization of the stochastic process.public double[] getParameter()
AbstractLIBORCovarianceModelParametricgetParameter in class AbstractLIBORCovarianceModelParametricpublic void setParameter(double[] parameter)
setParameter in class AbstractLIBORCovarianceModelParametricpublic Object clone()
clone in class AbstractLIBORCovarianceModelParametricpublic LIBORVolatilityModel getVolatilityModel()
public LIBORCorrelationModel getCorrelationModel()
Copyright © 2015. All rights reserved.