public class G2PlusPlus
extends java.lang.Object
Constructor and Description |
---|
G2PlusPlus(double dblSigma,
double dblA,
double dblEta,
double dblB,
UnivariateSequenceGenerator[] aRSG,
double dblRho,
R1ToR1 auIFRInitial)
G2PlusPlus Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
a()
Retrieve A
|
double |
b()
Retrieve B
|
double |
deltaX(int iSpotDate,
int iViewDate,
double dblX,
int iSpotTimeIncrement)
Compute the X Increment
|
double |
deltaY(int iSpotDate,
int iViewDate,
double dblY,
int iSpotTimeIncrement)
Compute the Y Increment
|
double |
eta()
Retrieve Eta
|
R1ToR1 |
ifrInitialTermStructure()
Retrieve the Initial Instantaneous Forward Rate Term Structure
|
double |
phi(int iSpotDate,
int iViewDate)
Compute the G2++ Phi
|
double |
rho()
Retrieve Rho
|
UnivariateSequenceGenerator[] |
rsg()
Retrieve the Random Sequence Generator Array
|
double |
sigma()
Retrieve Sigma
|
public G2PlusPlus(double dblSigma, double dblA, double dblEta, double dblB, UnivariateSequenceGenerator[] aRSG, double dblRho, R1ToR1 auIFRInitial) throws java.lang.Exception
dblSigma
- SigmadblA
- AdblEta
- EtadblB
- BaRSG
- Array of the Random Sequence GeneratorsdblRho
- RhoauIFRInitial
- The Initial Instantaneous Forward Rate Term Structurejava.lang.Exception
- Thrown if the Inputs are Invalidpublic double sigma()
public double a()
public double eta()
public double b()
public R1ToR1 ifrInitialTermStructure()
public UnivariateSequenceGenerator[] rsg()
public double rho()
public double phi(int iSpotDate, int iViewDate) throws java.lang.Exception
iSpotDate
- The Spot DateiViewDate
- The View Datejava.lang.Exception
- Thrown if the G2++ Phi cannot be computedpublic double deltaX(int iSpotDate, int iViewDate, double dblX, int iSpotTimeIncrement) throws java.lang.Exception
iSpotDate
- The Spot DateiViewDate
- The View DatedblX
- The X ValueiSpotTimeIncrement
- The Spot Time Incrementjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double deltaY(int iSpotDate, int iViewDate, double dblY, int iSpotTimeIncrement) throws java.lang.Exception
iSpotDate
- The Spot DateiViewDate
- The View DatedblY
- The Y ValueiSpotTimeIncrement
- The Spot Time Incrementjava.lang.Exception
- Thrown if the Inputs are Invalid