net.finmath.montecarlo.interestrate.modelplugins
Class LIBORCorrelationModelThreeParameterExponentialDecay
- java.lang.Object
-
- net.finmath.montecarlo.interestrate.modelplugins.LIBORCorrelationModel
-
- net.finmath.montecarlo.interestrate.modelplugins.LIBORCorrelationModelThreeParameterExponentialDecay
-
public class LIBORCorrelationModelThreeParameterExponentialDecay extends LIBORCorrelationModel
Simple correlation model given by R, where R is a factor reduced matrix (seeLinearAlgebra.factorReduction(double[][], int)) created from the \( n \) Eigenvectors of \( \tilde{R} \) belonging to the \( n \) largest non-negative Eigenvalues, where \( \tilde{R} = \tilde{\rho}_{i,j} \) and \[ \tilde{\rho}_{i,j} = b + (1-b) * \exp(-a |T_{i} - T_{j}| - c \max(T_{i},T_{j}))
-
-
Constructor Summary
Constructors Constructor and Description LIBORCorrelationModelThreeParameterExponentialDecay(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, int numberOfFactors, double a, double b, double c, boolean isCalibrateable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()doublegetCorrelation(int timeIndex, int component1, int component2)doublegetFactorLoading(int timeIndex, int factor, int component)intgetNumberOfFactors()double[]getParameter()voidsetParameter(double[] parameter)-
Methods inherited from class net.finmath.montecarlo.interestrate.modelplugins.LIBORCorrelationModel
getLiborPeriodDiscretization, getTimeDiscretization
-
-
-
-
Constructor Detail
-
LIBORCorrelationModelThreeParameterExponentialDecay
public LIBORCorrelationModelThreeParameterExponentialDecay(TimeDiscretizationInterface timeDiscretization, TimeDiscretizationInterface liborPeriodDiscretization, int numberOfFactors, double a, double b, double c, boolean isCalibrateable)
-
-
Method Detail
-
getParameter
public double[] getParameter()
- Specified by:
getParameterin classLIBORCorrelationModel
-
setParameter
public void setParameter(double[] parameter)
- Specified by:
setParameterin classLIBORCorrelationModel
-
getFactorLoading
public double getFactorLoading(int timeIndex, int factor, int component)- Specified by:
getFactorLoadingin classLIBORCorrelationModel
-
getCorrelation
public double getCorrelation(int timeIndex, int component1, int component2)- Specified by:
getCorrelationin classLIBORCorrelationModel
-
getNumberOfFactors
public int getNumberOfFactors()
- Specified by:
getNumberOfFactorsin classLIBORCorrelationModel
-
clone
public java.lang.Object clone()
- Specified by:
clonein classLIBORCorrelationModel
-
-
DataMelt 3.0 © DataMelt by jWork.ORG