Package org.drip.product.fx
Class FXForwardComponent.FXBasisCalibrator
java.lang.Object
org.drip.product.fx.FXForwardComponent.FXBasisCalibrator
- Enclosing class:
- FXForwardComponent
public class FXForwardComponent.FXBasisCalibrator
extends java.lang.Object
- Author:
- Lakshmi Krishnamurthy Calibrator for FXBasis - either bootstrapped or cumulative
-
Constructor Summary
Constructors Constructor Description FXBasisCalibrator(FXForwardComponent fxfwd)
Constructor: Construct the basis calibrator from the FXForward parent -
Method Summary
Modifier and Type Method Description double
calibrateDCBasisFromFwdPriceNR(ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, double dblFXSpot, double dblMarketFXFwdPrice, boolean bBasisOnDenom)
Calibrate the discount curve basis from FXForward using Newton-Raphson methodologyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FXBasisCalibrator
Constructor: Construct the basis calibrator from the FXForward parent- Parameters:
fxfwd
- FXForward parent- Throws:
java.lang.Exception
- Thrown if parent is invalid
-
-
Method Details
-
calibrateDCBasisFromFwdPriceNR
public double calibrateDCBasisFromFwdPriceNR(ValuationParams valParams, MergedDiscountForwardCurve dcNum, MergedDiscountForwardCurve dcDenom, double dblFXSpot, double dblMarketFXFwdPrice, boolean bBasisOnDenom) throws java.lang.ExceptionCalibrate the discount curve basis from FXForward using Newton-Raphson methodology- Parameters:
valParams
- ValuationParamsdcNum
- Discount Curve for the NumeratordcDenom
- Discount Curve for the DenominatordblFXSpot
- FXSpot valuedblMarketFXFwdPrice
- FXForward market valuebBasisOnDenom
- True - Basis is set on the denominator- Returns:
- Calibrated DC basis
- Throws:
java.lang.Exception
- Thrown if cannot calibrate
-