Package org.drip.analytics.cashflow
Class LossQuadratureMetrics
java.lang.Object
org.drip.analytics.cashflow.LossQuadratureMetrics
public class LossQuadratureMetrics
extends java.lang.Object
LossPeriodCurveFactors is an Implementation of the Period Class enhanced by the Loss Period
Measures. It exports the following Functionality:
- Start/End Survival Probabilities
- Period Effective Notional/Recovery/Discount Factor
- Serialization into and De-serialization out of Byte Arrays
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Unit and Composite Cash Flow Periods
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description LossQuadratureMetrics(int iStartDate, int iEndDate, double dblStartSurvival, double dblEndSurvival, double dblAccrualDCF, double dblEffectiveNotional, double dblEffectiveRecovery, double dblEffectiveDF)LossPeriodCurveFactors Constructor -
Method Summary
Modifier and Type Method Description doubleaccrualDCF()Get the Period Accrual Day Count FractiondoubleeffectiveDF()Get the Period Effective Discount FactordoubleeffectiveNotional()Get the Period Effective NotionaldoubleeffectiveRecovery()Get the Period Effective RecoveryintendDate()Period End DatedoubleendSurvival()Survival at the Period Endstatic LossQuadratureMetricsMakeDefaultPeriod(int iStartDate, int iEndDate, double dblAccrualDCF, double dblEffectiveNotional, double dblEffectiveRecovery, MergedDiscountForwardCurve dc, CreditCurve cc, int iDefaultLag)Create an Instance of the LossPeriodCurveFactors using the Period's Dates and Curves to generate the Curve Measuresstatic LossQuadratureMetricsMakeDefaultPeriod(int iStartDate, int iEndDate, double dblAccrualDCF, double dblEffectiveNotional, MergedDiscountForwardCurve dc, CreditCurve cc, int iDefaultLag)Create a LossPeriodCurveFactors Instance from the Period Dates and the Curve MeasuresintstartDate()Period Start DatedoublestartSurvival()Survival Probability at the Period BeginningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LossQuadratureMetrics
public LossQuadratureMetrics(int iStartDate, int iEndDate, double dblStartSurvival, double dblEndSurvival, double dblAccrualDCF, double dblEffectiveNotional, double dblEffectiveRecovery, double dblEffectiveDF) throws java.lang.ExceptionLossPeriodCurveFactors Constructor- Parameters:
iStartDate- Period Start DateiEndDate- Period End DatedblStartSurvival- Period Start SurvivaldblEndSurvival- Period End SurvivaldblAccrualDCF- Period Accrual DCFdblEffectiveNotional- Period Effective NotionaldblEffectiveRecovery- Period Effective RecoverydblEffectiveDF- Period Effective Discount Factor- Throws:
java.lang.Exception- Thrown if inputs are invalid
-
-
Method Details
-
MakeDefaultPeriod
public static final LossQuadratureMetrics MakeDefaultPeriod(int iStartDate, int iEndDate, double dblAccrualDCF, double dblEffectiveNotional, double dblEffectiveRecovery, MergedDiscountForwardCurve dc, CreditCurve cc, int iDefaultLag)Create an Instance of the LossPeriodCurveFactors using the Period's Dates and Curves to generate the Curve Measures- Parameters:
iStartDate- Period Start DateiEndDate- Period End DatedblAccrualDCF- Period's Accrual Day Count FractiondblEffectiveNotional- Period's Effective NotionaldblEffectiveRecovery- Period's Effective Recoverydc- Discount Curvecc- Credit CurveiDefaultLag- Default Pay Lag- Returns:
- LossPeriodCurveFactors Instance
-
MakeDefaultPeriod
public static final LossQuadratureMetrics MakeDefaultPeriod(int iStartDate, int iEndDate, double dblAccrualDCF, double dblEffectiveNotional, MergedDiscountForwardCurve dc, CreditCurve cc, int iDefaultLag)Create a LossPeriodCurveFactors Instance from the Period Dates and the Curve Measures- Parameters:
iStartDate- Period Start DateiEndDate- Period End DatedblAccrualDCF- Period's Accrual Day Count FractiondblEffectiveNotional- Period's Effective Notionaldc- Discount Curvecc- Credit CurveiDefaultLag- Default Pay Lag- Returns:
- LossPeriodCurveFactors instance
-
startDate
public int startDate()Period Start Date- Returns:
- Period Start Date
-
startSurvival
public double startSurvival()Survival Probability at the Period Beginning- Returns:
- Survival Probability at the Period Beginning
-
endDate
public int endDate()Period End Date- Returns:
- Period End Date
-
endSurvival
public double endSurvival()Survival at the Period End- Returns:
- Survival at the Period End
-
effectiveNotional
public double effectiveNotional()Get the Period Effective Notional- Returns:
- Period Effective Notional
-
effectiveRecovery
public double effectiveRecovery()Get the Period Effective Recovery- Returns:
- Period Effective Recovery
-
effectiveDF
public double effectiveDF()Get the Period Effective Discount Factor- Returns:
- Period Effective Discount Factor
-
accrualDCF
public double accrualDCF()Get the Period Accrual Day Count Fraction- Returns:
- Period Accrual Day Count Fraction
-