public class TermStructCovarianceModelFromLIBORCovarianceModelParametric extends TermStructureCovarianceModelParametric
| Constructor and Description |
|---|
TermStructCovarianceModelFromLIBORCovarianceModelParametric(TermStructureTenorTimeScalingInterface tenorTimeScalingModel,
AbstractLIBORCovarianceModelParametric covarianceModel) |
| Modifier and Type | Method and Description |
|---|---|
TermStructureCovarianceModelParametric |
clone() |
TermStructureCovarianceModelParametric |
getCloneWithModifiedParameters(double[] parameters)
Return an instance of this model using a new set of parameters.
|
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() |
double[] |
getParameter()
Get the parameters of determining this parametric
covariance model.
|
double |
getScaledTenorTime(double periodStart,
double periodEnd) |
getCloneCalibratedpublic TermStructCovarianceModelFromLIBORCovarianceModelParametric(TermStructureTenorTimeScalingInterface tenorTimeScalingModel, AbstractLIBORCovarianceModelParametric covarianceModel)
tenorTimeScalingModel - The model used for the tenor time re-scaling (providing the scaling coefficients).covarianceModel - The model implementing AbstractLIBORCovarianceModelParametric.public double getScaledTenorTime(double periodStart,
double periodEnd)
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 .time - 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()
public double[] getParameter()
TermStructureCovarianceModelParametricgetParameter in interface TermStructureFactorLoadingsModelParametricInterfacegetParameter in interface TermStructureTenorTimeScalingInterfacegetParameter in class TermStructureCovarianceModelParametricpublic TermStructureCovarianceModelParametric getCloneWithModifiedParameters(double[] parameters)
TermStructureCovarianceModelParametricgetCloneWithModifiedParameters in interface TermStructureFactorLoadingsModelParametricInterfacegetCloneWithModifiedParameters in interface TermStructureTenorTimeScalingInterfacegetCloneWithModifiedParameters in class TermStructureCovarianceModelParametricparameters - The new set of parameters.public TermStructureCovarianceModelParametric clone()
clone in interface TermStructureTenorTimeScalingInterfaceclone in class TermStructureCovarianceModelParametricCopyright © 2019. All rights reserved.