Package org.drip.dynamics.hjm
Class G2PlusPlus
java.lang.Object
org.drip.dynamics.hjm.G2PlusPlus
public class G2PlusPlus
extends java.lang.Object
G2PlusPlus provides the Hull-White-type, but 2F Gaussian HJM Short Rate Dynamics Implementation.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = HJM, Hull White, LMM, and SABR Dynamic Evolution Models
- Package = HJM Based Latent State Evolution
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description G2PlusPlus(double dblSigma, double dblA, double dblEta, double dblB, UnivariateSequenceGenerator[] aRSG, double dblRho, R1ToR1 auIFRInitial)G2PlusPlus Constructor -
Method Summary
Modifier and Type Method Description doublea()Retrieve Adoubleb()Retrieve BdoubledeltaX(int iSpotDate, int iViewDate, double dblX, int iSpotTimeIncrement)Compute the X IncrementdoubledeltaY(int iSpotDate, int iViewDate, double dblY, int iSpotTimeIncrement)Compute the Y Incrementdoubleeta()Retrieve EtaR1ToR1ifrInitialTermStructure()Retrieve the Initial Instantaneous Forward Rate Term Structuredoublephi(int iSpotDate, int iViewDate)Compute the G2++ Phidoublerho()Retrieve RhoUnivariateSequenceGenerator[]rsg()Retrieve the Random Sequence Generator Arraydoublesigma()Retrieve SigmaMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
G2PlusPlus
public G2PlusPlus(double dblSigma, double dblA, double dblEta, double dblB, UnivariateSequenceGenerator[] aRSG, double dblRho, R1ToR1 auIFRInitial) throws java.lang.ExceptionG2PlusPlus Constructor- Parameters:
dblSigma- SigmadblA- AdblEta- EtadblB- BaRSG- Array of the Random Sequence GeneratorsdblRho- RhoauIFRInitial- The Initial Instantaneous Forward Rate Term Structure- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
sigma
public double sigma()Retrieve Sigma- Returns:
- Sigma
-
a
public double a()Retrieve A- Returns:
- A
-
eta
public double eta()Retrieve Eta- Returns:
- Eta
-
b
public double b()Retrieve B- Returns:
- B
-
ifrInitialTermStructure
Retrieve the Initial Instantaneous Forward Rate Term Structure- Returns:
- The Initial Instantaneous Forward Rate Term Structure
-
rsg
Retrieve the Random Sequence Generator Array- Returns:
- The Random Sequence Generator Array
-
rho
public double rho()Retrieve Rho- Returns:
- Rho
-
phi
public double phi(int iSpotDate, int iViewDate) throws java.lang.ExceptionCompute the G2++ Phi- Parameters:
iSpotDate- The Spot DateiViewDate- The View Date- Returns:
- The G2++ Phi
- Throws:
java.lang.Exception- Thrown if the G2++ Phi cannot be computed
-
deltaX
public double deltaX(int iSpotDate, int iViewDate, double dblX, int iSpotTimeIncrement) throws java.lang.ExceptionCompute the X Increment- Parameters:
iSpotDate- The Spot DateiViewDate- The View DatedblX- The X ValueiSpotTimeIncrement- The Spot Time Increment- Returns:
- The X Increment
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
deltaY
public double deltaY(int iSpotDate, int iViewDate, double dblY, int iSpotTimeIncrement) throws java.lang.ExceptionCompute the Y Increment- Parameters:
iSpotDate- The Spot DateiViewDate- The View DatedblY- The Y ValueiSpotTimeIncrement- The Spot Time Increment- Returns:
- The Y Increment
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-