Package org.drip.service.product
Class FixFloatAPI
java.lang.Object
org.drip.service.product.FixFloatAPI
public class FixFloatAPI
extends java.lang.Object
FixFloatAPI contains the Functionality associated with the Horizon Analysis of the Fix Float Swap.
- Module = Computational Core Module
- Library = Computation Support
- Project = Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
- Package = Product Horizon PnL Attribution Decomposition
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FixFloatAPI()
-
Method Summary
Modifier and Type Method Description static java.util.List<PositionChangeComponents>
HorizonChangeAttribution(JulianDate[] adtSpot, int iHorizonGap, java.lang.String[] astrFundingDepositInstrumentTenor, double[][] aadblFundingDepositInstrumentQuote, java.lang.String[] astrFundingFixFloatTenor, double[][] aadblFundingFixFloatQuote, java.lang.String strCurrency, java.lang.String strMaturityTenor, java.lang.String[] astrRollDownHorizon, int iLatentStateType)
Generate the Funding Curve Horizon Metricsstatic PositionChangeComponents
HorizonChangeAttribution(JulianDate dtFirst, JulianDate dtSecond, java.lang.String[] astrFundingDepositInstrumentTenor, double[] adblFirstFundingDepositInstrument, double[] adblSecondFundingDepositInstrument, java.lang.String[] astrFundingFixFloatTenor, double[] adblFirstFundingFixFloat, double[] adblSecondFundingFixFloat, java.lang.String strCurrency, java.lang.String strMaturityTenor, java.lang.String[] astrRollDownHorizon, int iLatentStateType)
Generate the Funding Curve Horizon Metricsstatic PositionChangeComponents
HorizonChangeAttribution(MergedDiscountForwardCurve dcFirst, MergedDiscountForwardCurve dcSecond, CaseInsensitiveHashMap<MergedDiscountForwardCurve> mapRollDownDiscountCurve, java.lang.String strMaturityTenor)
Compute the Horizon Change Attribution Details for the Specified Fix-Float SwapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FixFloatAPI
public FixFloatAPI()
-
-
Method Details
-
HorizonChangeAttribution
public static final PositionChangeComponents HorizonChangeAttribution(MergedDiscountForwardCurve dcFirst, MergedDiscountForwardCurve dcSecond, CaseInsensitiveHashMap<MergedDiscountForwardCurve> mapRollDownDiscountCurve, java.lang.String strMaturityTenor)Compute the Horizon Change Attribution Details for the Specified Fix-Float Swap- Parameters:
dcFirst
- First Day Discount CurvedcSecond
- Second Date Discount CurvemapRollDownDiscountCurve
- Map of the Roll Down Discount CurvestrMaturityTenor
- Fix Float Swap Maturity Tenor- Returns:
- The Horizon Change Attribution Instance
-
HorizonChangeAttribution
public static final PositionChangeComponents HorizonChangeAttribution(JulianDate dtFirst, JulianDate dtSecond, java.lang.String[] astrFundingDepositInstrumentTenor, double[] adblFirstFundingDepositInstrument, double[] adblSecondFundingDepositInstrument, java.lang.String[] astrFundingFixFloatTenor, double[] adblFirstFundingFixFloat, double[] adblSecondFundingFixFloat, java.lang.String strCurrency, java.lang.String strMaturityTenor, java.lang.String[] astrRollDownHorizon, int iLatentStateType)Generate the Funding Curve Horizon Metrics- Parameters:
dtFirst
- The First DatedtSecond
- The Second DateastrFundingDepositInstrumentTenor
- Array of Funding Curve Deposit Instrument Maturity TenorsadblFirstFundingDepositInstrument
- Array of First Date Funding Curve Deposit Instrument QuotesadblSecondFundingDepositInstrument
- Array of Second Date Funding Curve Deposit Instrument QuotesastrFundingFixFloatTenor
- Array of Funding Curve Fix Float Instrument Maturity TenorsadblFirstFundingFixFloat
- Array of First Date Funding Curve Fix Float Swap RatesadblSecondFundingFixFloat
- Array of Second Date Funding Curve Fix Float Swap RatesstrCurrency
- Funding CurrencystrMaturityTenor
- Maturity TenorastrRollDownHorizon
- Array of the Roll Down Horizon TenorsiLatentStateType
- Latent State Type- Returns:
- The Funding Curve Horizon Metrics
-
HorizonChangeAttribution
public static final java.util.List<PositionChangeComponents> HorizonChangeAttribution(JulianDate[] adtSpot, int iHorizonGap, java.lang.String[] astrFundingDepositInstrumentTenor, double[][] aadblFundingDepositInstrumentQuote, java.lang.String[] astrFundingFixFloatTenor, double[][] aadblFundingFixFloatQuote, java.lang.String strCurrency, java.lang.String strMaturityTenor, java.lang.String[] astrRollDownHorizon, int iLatentStateType)Generate the Funding Curve Horizon Metrics- Parameters:
adtSpot
- Array of SpotiHorizonGap
- The Horizon GapastrFundingDepositInstrumentTenor
- Array of Funding Curve Deposit Instrument Maturity TenorsaadblFundingDepositInstrumentQuote
- Array of Funding Curve Deposit Instrument Forward RatesastrFundingFixFloatTenor
- Array of Funding Curve Fix Float Instrument Maturity TenorsaadblFundingFixFloatQuote
- Array of Funding Curve Fix Float Instrument Swap RatesstrCurrency
- Funding CurrencystrMaturityTenor
- Maturity TenorastrRollDownHorizon
- Array of the Roll Down Horizon TenorsiLatentStateType
- Latent State Type- Returns:
- The Funding Curve Horizon Metrics
-