Package org.drip.state.csa
Class MultilateralBasisCurve
java.lang.Object
org.drip.state.csa.MultilateralBasisCurve
- All Implemented Interfaces:
CashFlowEstimator,DiscountFactorEstimator
public class MultilateralBasisCurve extends java.lang.Object implements CashFlowEstimator
MultilateralBasisCurve implements the CSA Cash Rate Curve as a Basis over an Overnight Curve. It
exports the following Functionality:
- Retrieve the Overnight Curve
- Retrieve the Basis to the Overnight Curve
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Credit Support Annex Latent State |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description MultilateralBasisCurve() -
Method Summary
Modifier and Type Method Description doublebasis()Retrieve the Basis to the Overnight Curvedoubledf(int date)Calculate the Discount Factor to the given Datedoubledf(java.lang.String tenor)Calculate the Discount Factor to the given Tenordoubledf(JulianDate date)Calculate the discount factor to the given datedoubleeffectiveDF(int date1, int date2)Compute the time-weighted discount factor between 2 datesdoubleeffectiveDF(java.lang.String tenor1, java.lang.String tenor2)Compute the time-weighted discount factor between 2 tenorsdoubleeffectiveDF(JulianDate date1, JulianDate date2)Compute the time-weighted discount factor between 2 datesJulianDateepoch()Retrieve the Starting (Epoch) DateMergedDiscountForwardCurveovernightCurve()Retrieve the Overnight Curvedoublerate(int date)Calculate the Cash Flow Rate Effective to the given Datedoublerate(int date1, int date2)Calculate the Cash Flow Rate Effective between the Datesdoublerate(java.lang.String tenor)Calculate the Cash Flow Rate Effective to the given Tenordoublerate(java.lang.String tenor1, java.lang.String tenor2)Calculate the Cash Flow Rate Effective between the Tenorsdoublerate(JulianDate date)Calculate the Cash Flow Rate Effective to the given datedoublerate(JulianDate date1, JulianDate date2)Calculate the Cash Flow Rate Effective between the DatesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MultilateralBasisCurve
public MultilateralBasisCurve()
-
-
Method Details
-
overnightCurve
Retrieve the Overnight Curve- Returns:
- The Overnight Curve
-
basis
public double basis()Retrieve the Basis to the Overnight Curve- Returns:
- The Basis to the Overnight Curve
-
epoch
Description copied from interface:DiscountFactorEstimatorRetrieve the Starting (Epoch) Date- Specified by:
epochin interfaceDiscountFactorEstimator- Returns:
- The Starting Date
-
df
public double df(int date) throws java.lang.ExceptionDescription copied from interface:DiscountFactorEstimatorCalculate the Discount Factor to the given Date- Specified by:
dfin interfaceDiscountFactorEstimator- Parameters:
date- Date- Returns:
- Discount Factor
- Throws:
java.lang.Exception- Thrown if the Discount Factor cannot be calculated
-
df
Description copied from interface:DiscountFactorEstimatorCalculate the discount factor to the given date- Specified by:
dfin interfaceDiscountFactorEstimator- Parameters:
date- Date- Returns:
- Discount factor
- Throws:
java.lang.Exception- Thrown if the discount factor cannot be calculated
-
df
public double df(java.lang.String tenor) throws java.lang.ExceptionDescription copied from interface:DiscountFactorEstimatorCalculate the Discount Factor to the given Tenor- Specified by:
dfin interfaceDiscountFactorEstimator- Parameters:
tenor- Tenor- Returns:
- Discount factor
- Throws:
java.lang.Exception- Thrown if the Discount Factor cannot be calculated
-
effectiveDF
public double effectiveDF(int date1, int date2) throws java.lang.ExceptionDescription copied from interface:DiscountFactorEstimatorCompute the time-weighted discount factor between 2 dates- Specified by:
effectiveDFin interfaceDiscountFactorEstimator- Parameters:
date1- First Datedate2- Second Date- Returns:
- Discount Factor
- Throws:
java.lang.Exception- Thrown if the discount factor cannot be calculated
-
effectiveDF
Description copied from interface:DiscountFactorEstimatorCompute the time-weighted discount factor between 2 dates- Specified by:
effectiveDFin interfaceDiscountFactorEstimator- Parameters:
date1- First Datedate2- Second Date- Returns:
- Discount Factor
- Throws:
java.lang.Exception- Thrown if the discount factor cannot be calculated
-
effectiveDF
public double effectiveDF(java.lang.String tenor1, java.lang.String tenor2) throws java.lang.ExceptionDescription copied from interface:DiscountFactorEstimatorCompute the time-weighted discount factor between 2 tenors- Specified by:
effectiveDFin interfaceDiscountFactorEstimator- Parameters:
tenor1- First Datetenor2- Second Date- Returns:
- Discount Factor
- Throws:
java.lang.Exception- Thrown if the discount factor cannot be calculated
-
rate
public double rate(int date) throws java.lang.ExceptionDescription copied from interface:CashFlowEstimatorCalculate the Cash Flow Rate Effective to the given Date- Specified by:
ratein interfaceCashFlowEstimator- Parameters:
date- Date- Returns:
- The Cash Flow Rate
- Throws:
java.lang.Exception- Thrown if the Cash Flow Rate cannot be calculated
-
rate
Description copied from interface:CashFlowEstimatorCalculate the Cash Flow Rate Effective to the given date- Specified by:
ratein interfaceCashFlowEstimator- Parameters:
date- Date- Returns:
- The Cash Flow Rate
- Throws:
java.lang.Exception- Thrown if the Cash Flow Rate cannot be Calculated
-
rate
public double rate(java.lang.String tenor) throws java.lang.ExceptionDescription copied from interface:CashFlowEstimatorCalculate the Cash Flow Rate Effective to the given Tenor- Specified by:
ratein interfaceCashFlowEstimator- Parameters:
tenor- Tenor- Returns:
- The Cash Flow Rate
- Throws:
java.lang.Exception- Thrown if the Cash Flow Rate cannot be calculated
-
rate
public double rate(int date1, int date2) throws java.lang.ExceptionDescription copied from interface:CashFlowEstimatorCalculate the Cash Flow Rate Effective between the Dates- Specified by:
ratein interfaceCashFlowEstimator- Parameters:
date1- Date #1date2- Date #2- Returns:
- The Cash Flow Rate
- Throws:
java.lang.Exception- Thrown if the Cash Flow Rate cannot be calculated
-
rate
Description copied from interface:CashFlowEstimatorCalculate the Cash Flow Rate Effective between the Dates- Specified by:
ratein interfaceCashFlowEstimator- Parameters:
date1- Date #1date2- Date #2- Returns:
- The Cash Flow Rate
- Throws:
java.lang.Exception- Thrown if the Cash Flow Rate cannot be calculated
-
rate
public double rate(java.lang.String tenor1, java.lang.String tenor2) throws java.lang.ExceptionDescription copied from interface:CashFlowEstimatorCalculate the Cash Flow Rate Effective between the Tenors- Specified by:
ratein interfaceCashFlowEstimator- Parameters:
tenor1- Tenor #1tenor2- Tenor #2- Returns:
- The Cash Flow Rate
- Throws:
java.lang.Exception- Thrown if the Cash Flow Rate cannot be calculated
-