public class TermStructCovarianceModelFromLIBORCovarianceModel extends Object implements TermStructureFactorLoadingsModelInterface
| Constructor and Description |
|---|
TermStructCovarianceModelFromLIBORCovarianceModel(AbstractLIBORCovarianceModelParametric covarianceModel)
Create a term structure covariance model model implementing TermStructureCovarianceModelInterface
using a given model implementing AbstractLIBORCovarianceModelParametric.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable[] |
getFactorLoading(double time,
double periodStart,
double periodEnd,
TimeDiscretization periodDiscretization,
RandomVariable[] realizationAtTimeIndex,
TermStructureModel model)
Return the factor loading for a given time and a term structure period.
|
int |
getNumberOfFactors() |
public TermStructCovarianceModelFromLIBORCovarianceModel(AbstractLIBORCovarianceModelParametric covarianceModel)
covarianceModel - The model implementing AbstractLIBORCovarianceModelParametric.public RandomVariable[] getFactorLoading(double time, double periodStart, double periodEnd, TimeDiscretization periodDiscretization, RandomVariable[] realizationAtTimeIndex, TermStructureModel model)
TermStructureFactorLoadingsModelInterfacegetTimeDiscretization
such that t_i ≤ t .
The component here, it given via a double T which may be associated with the LIBOR fixing date.
With respect to component time T, this method uses a piece wise constant interpolation, i.e.,
it calculates T_j such that T_j is the largest point in getTimeDiscretization
such that T_j ≤ T .getFactorLoading in interface TermStructureFactorLoadingsModelInterfacetime - The time t at which factor loading is requested.periodStart - Period start of the component.periodEnd - Period end of the component.periodDiscretization - The period discretization associated with the realizationAtTimeIndexrealizationAtTimeIndex - The realization of the stochastic process (may be used to implement local volatility/covariance/correlation models).model - The term structure model.public int getNumberOfFactors()
getNumberOfFactors in interface TermStructureFactorLoadingsModelInterfaceCopyright © 2019. All rights reserved.