public class FlatForwardFXCurve extends ExplicitBootFXCurve
Constructor and Description |
---|
FlatForwardFXCurve(int iEpochDate,
CurrencyPair cp,
double dblFXSpot,
int[] aiPillarDate,
double[] adblFXForward)
FlatForwardVolatilityCurve Constructor
|
Modifier and Type | Method and Description |
---|---|
double[] |
bootstrapBasis(int[] aiDateNode,
ValuationParams valParams,
MergedDiscountForwardCurve dcNum,
MergedDiscountForwardCurve dcDenom,
boolean bBasisOnDenom)
Bootstrap the basis to the discount curve inputs
|
MergedDiscountForwardCurve |
bootstrapBasisDC(int[] aiDateNode,
ValuationParams valParams,
MergedDiscountForwardCurve dcNum,
MergedDiscountForwardCurve dcDenom,
boolean bBasisOnDenom)
Bootstrap the discount curve from the discount curve inputs
|
boolean |
bumpNodeValue(int iNodeIndex,
double dblValue)
Bump the node value at the node specified the index by the value
|
double |
fx(int iDate)
Calculate the FX Forward to the given Date
|
double |
fxSpot()
Retrieve the FX Spot
|
double[] |
impliedNodeRates(int[] aiDateNode,
ValuationParams valParams,
MergedDiscountForwardCurve dcNum,
MergedDiscountForwardCurve dcDenom,
boolean bBasisOnDenom)
Calculate the rates implied by the discount curve inputs
|
WengertJacobian |
jackDForwardDManifestMeasure(java.lang.String strManifestMeasure,
int iDate)
Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date
|
double |
rate(int[] aiDateNode,
ValuationParams valParams,
MergedDiscountForwardCurve dcNum,
MergedDiscountForwardCurve dcDenom,
int iDate,
boolean bBasisOnDenom)
Calculate the rate implied by the discount curve inputs to a specified date
|
boolean |
setFlatValue(double dblValue)
Set the flat value across all the nodes
|
boolean |
setNodeValue(int iNodeIndex,
double dblValue)
Set the Value/Slope at the Node specified by the Index
|
double[] |
zeroBasis(int[] aiDateNode,
ValuationParams valParams,
MergedDiscountForwardCurve dcNum,
MergedDiscountForwardCurve dcDenom,
boolean bBasisOnDenom)
Calculate the set of Zero basis given the input discount curves
|
calibComp, currency, currencyPair, customTweakManifestMeasure, customTweakQuantificationMetric, epoch, fx, fx, jackDForwardDManifestMeasure, jackDForwardDManifestMeasure, label, manifestMeasure, parallelShiftManifestMeasure, parallelShiftQuantificationMetric, setCCIS, shiftManifestMeasure
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calibComp, currency, epoch, label, manifestMeasure, setCCIS
customTweakManifestMeasure, customTweakQuantificationMetric, parallelShiftManifestMeasure, parallelShiftQuantificationMetric, shiftManifestMeasure
public FlatForwardFXCurve(int iEpochDate, CurrencyPair cp, double dblFXSpot, int[] aiPillarDate, double[] adblFXForward) throws java.lang.Exception
iEpochDate
- Epoch Datecp
- Currency PairdblFXSpot
- FX SpotaiPillarDate
- Array of the Pillar DatesadblFXForward
- Array of the corresponding FX Forward Nodesjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double fx(int iDate) throws java.lang.Exception
FXCurve
public double fxSpot()
public double[] zeroBasis(int[] aiDateNode, ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, boolean bBasisOnDenom)
FXCurve
zeroBasis
in class FXCurve
aiDateNode
- Array of Date NodesvalParams
- Valuation ParametersdcNum
- Discount Curve NumeratordcDenom
- Discount Curve DenominatorbBasisOnDenom
- True if the basis is calculated on the denominator discount curvepublic double[] impliedNodeRates(int[] aiDateNode, ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, boolean bBasisOnDenom)
FXCurve
impliedNodeRates
in class FXCurve
aiDateNode
- Array of Date NodesvalParams
- Valuation ParametersdcNum
- Discount Curve NumeratordcDenom
- Discount Curve DenominatorbBasisOnDenom
- True if the basis is calculated on the denominator discount curvepublic double[] bootstrapBasis(int[] aiDateNode, ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, boolean bBasisOnDenom)
FXCurve
bootstrapBasis
in class FXCurve
aiDateNode
- Array of Date NodesvalParams
- Valuation ParametersdcNum
- Discount Curve NumeratordcDenom
- Discount Curve DenominatorbBasisOnDenom
- True if the basis is calculated on the denominator discount curvepublic MergedDiscountForwardCurve bootstrapBasisDC(int[] aiDateNode, ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, boolean bBasisOnDenom)
FXCurve
bootstrapBasisDC
in class FXCurve
aiDateNode
- Array of Date NodesvalParams
- Valuation ParametersdcNum
- Discount Curve NumeratordcDenom
- Discount Curve DenominatorbBasisOnDenom
- True if the basis is calculated on the denominator discount curvepublic double rate(int[] aiDateNode, ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, int iDate, boolean bBasisOnDenom) throws java.lang.Exception
FXCurve
rate
in class FXCurve
aiDateNode
- Array of Date NodesvalParams
- ValuationParamsdcNum
- Discount Curve NumeratordcDenom
- Discount Curve DenominatoriDate
- Date to which the implied rate is soughtbBasisOnDenom
- True if the implied rate is calculated on the denominator discount curvejava.lang.Exception
- Thrown if the implied rate cannot be calculatedpublic WengertJacobian jackDForwardDManifestMeasure(java.lang.String strManifestMeasure, int iDate)
FXCurve
jackDForwardDManifestMeasure
in class FXCurve
strManifestMeasure
- Manifest MeasureiDate
- Datepublic boolean setNodeValue(int iNodeIndex, double dblValue)
ExplicitBootCurve
iNodeIndex
- Node IndexdblValue
- Node Valuepublic boolean bumpNodeValue(int iNodeIndex, double dblValue)
ExplicitBootCurve
iNodeIndex
- node indexdblValue
- node bump valuepublic boolean setFlatValue(double dblValue)
ExplicitBootCurve
dblValue
- node value