net.finmath.montecarlo.interestrate.modelplugins
Class LIBORCovarianceModelExponentialForm7Param
- java.lang.Object
-
- net.finmath.montecarlo.interestrate.modelplugins.AbstractLIBORCovarianceModel
-
- net.finmath.montecarlo.interestrate.modelplugins.AbstractLIBORCovarianceModelParametric
-
- net.finmath.montecarlo.interestrate.modelplugins.LIBORCovarianceModelExponentialForm7Param
-
public class LIBORCovarianceModelExponentialForm7Param extends AbstractLIBORCovarianceModelParametric
-
-
Constructor Summary
Constructors Constructor and Description LIBORCovarianceModelExponentialForm7Param(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, int numberOfFactors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()RandomVariableInterface[]getFactorLoading(int timeIndex, int component, RandomVariableInterface[] realizationAtTimeIndex)Return the factor loading for a given time index and component index.RandomVariablegetFactorLoadingPseudoInverse(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.voidsetParameter(double[] parameter)-
Methods inherited from class net.finmath.montecarlo.interestrate.modelplugins.AbstractLIBORCovarianceModelParametric
getCloneCalibrated, getCloneCalibrated, getCloneWithModifiedParameters, toString
-
Methods inherited from class net.finmath.montecarlo.interestrate.modelplugins.AbstractLIBORCovarianceModel
getCovariance, getCovariance, getFactorLoading, getFactorLoading, getLiborPeriodDiscretization, getNumberOfFactors, getTimeDiscretization
-
-
-
-
Constructor Detail
-
LIBORCovarianceModelExponentialForm7Param
public LIBORCovarianceModelExponentialForm7Param(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, int numberOfFactors)
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Specified by:
clonein classAbstractLIBORCovarianceModelParametric
-
getParameter
public double[] getParameter()
Description copied from class:AbstractLIBORCovarianceModelParametricGet the parameters of determining this parametric covariance model. The parameters are usually free parameters which may be used in calibration.- Specified by:
getParameterin classAbstractLIBORCovarianceModelParametric- Returns:
- Parameter vector.
-
setParameter
public void setParameter(double[] parameter)
- Specified by:
setParameterin classAbstractLIBORCovarianceModelParametric
-
getFactorLoading
public RandomVariableInterface[] getFactorLoading(int timeIndex, int component, RandomVariableInterface[] realizationAtTimeIndex)
Description copied from class:AbstractLIBORCovarianceModelReturn the factor loading for a given time index and component index. The factor loading is the vector fi such that the scalar product
fjfk = fj,1fk,1 + ... + fj,mfk,m
is the instantaneous covariance of the component j and k.- Specified by:
getFactorLoadingin classAbstractLIBORCovarianceModel- Parameters:
timeIndex- 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).- Returns:
- The factor loading fi(t).
-
getFactorLoadingPseudoInverse
public RandomVariable getFactorLoadingPseudoInverse(int timeIndex, int component, int factor, RandomVariableInterface[] realizationAtTimeIndex)
Description copied from class:AbstractLIBORCovarianceModelReturns the pseudo inverse of the factor matrix.- Specified by:
getFactorLoadingPseudoInversein classAbstractLIBORCovarianceModel- Parameters:
timeIndex- 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).- Returns:
- The entry of the pseudo-inverse of the factor loading matrix.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG