Package org.drip.state.curve
Class DeterministicCollateralChoiceDiscountCurve
java.lang.Object
org.drip.state.discount.DiscountCurve
org.drip.state.discount.MergedDiscountForwardCurve
org.drip.state.curve.DeterministicCollateralChoiceDiscountCurve
- All Implemented Interfaces:
Curve,DiscountFactorEstimator,LatentState
public class DeterministicCollateralChoiceDiscountCurve extends MergedDiscountForwardCurve
DeterministicCollateralChoiceDiscountCurve implements the Dynamically Switchable Collateral Choice
Discount Curve among the choice of provided "deterministic" collateral curves.
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Basis Spline Based Latent States |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description DeterministicCollateralChoiceDiscountCurve(MergedDiscountForwardCurve domesticCollateralizedDiscountCurve, ForeignCollateralizedDiscountCurve[] foreignCollateralizedDiscountCurveArray, int discreteCollateralizationIncrement)DeterministicCollateralChoiceDiscountCurve constructor -
Method Summary
Modifier and Type Method Description CalibratableComponent[]calibComp()Retrieve the Calibration ComponentsMergedDiscountForwardCurvecustomTweakManifestMeasure(java.lang.String manifestMeasure, ManifestMeasureTweak manifestMeasureTweak)Create a LatentState Instance from the Manifest Measure Tweak ParametersCurvecustomTweakQuantificationMetric(ManifestMeasureTweak manifestMeasureTweak)Create a LatentState Instance from the Quantification Metric Tweak Parametersdoubledf(int date)Calculate the Discount Factor to the given Datedoubleforward(int date1, int date2)Compute the Forward Rate between two DatesForwardRateEstimatorforwardRateEstimator(int date, ForwardLabel forwardLabel)Retrieve the Forward Curve that might be implied by the Latent State of this Discount Curve Instance corresponding to the specified Floating Rate IndexWengertJacobianjackDDFDManifestMeasure(int date, java.lang.String strManifestMeasure)Retrieve the Manifest Measure Jacobian of the Discount Factor to the given datejava.lang.StringlatentStateQuantificationMetric()Retrieve the Latent State Quantification MetricCaseInsensitiveTreeMap<java.lang.Double>manifestMeasure(java.lang.String instrument)Retrieve the Manifest Measure Map of the given Instrument used to construct the CurveDiscountFactorDiscountCurveparallelShiftManifestMeasure(java.lang.String manifestMeasure, double shift)Create a LatentState Instance from the Manifest Measure Parallel ShiftDiscountFactorDiscountCurveparallelShiftQuantificationMetric(double shift)Create a LatentState Instance from the Quantification Metric Parallel ShiftbooleansetCCIS(CurveConstructionInputSet curveConstructionInputSet)Set the Curve Construction Input Set ParametersDiscountFactorDiscountCurveshiftManifestMeasure(int spanIndex, java.lang.String manifestMeasure, double shift)Create a LatentState Instance from the Shift of the Specified Manifest Measuredoublezero(int date)Calculate the implied rate to the given dateMethods inherited from class org.drip.state.discount.MergedDiscountForwardCurve
canonicalTruthness, compJackDPVDManifestMeasure, compJackDPVDManifestMeasure, currency, df, df, effectiveDF, effectiveDF, effectiveDF, epoch, estimateManifestMeasure, forward, jackDDFDManifestMeasure, jackDDFDManifestMeasure, jackDForwardDManifestMeasure, jackDForwardDManifestMeasure, jackDForwardDManifestMeasure, label, libor, libor, libor, libor, nativeForwardCurve, parSwapDV01, proxyManifestMeasure, setTurns, turnAdjust, zero, zeroRateJack, zeroRateJackMethods inherited from class org.drip.state.discount.DiscountCurve
flatForward, flatNativeForward, flatNativeForward, flatNativeForwardEIMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DeterministicCollateralChoiceDiscountCurve
public DeterministicCollateralChoiceDiscountCurve(MergedDiscountForwardCurve domesticCollateralizedDiscountCurve, ForeignCollateralizedDiscountCurve[] foreignCollateralizedDiscountCurveArray, int discreteCollateralizationIncrement) throws java.lang.ExceptionDeterministicCollateralChoiceDiscountCurve constructor- Parameters:
domesticCollateralizedDiscountCurve- The Domestic Collateralized CurveforeignCollateralizedDiscountCurveArray- Array of The Foreign Collateralized CurvesdiscreteCollateralizationIncrement- The Discrete Collateralization Increment- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
df
public double df(int date) throws java.lang.ExceptionDescription copied from interface:DiscountFactorEstimatorCalculate the Discount Factor to the given Date- Parameters:
date- Date- Returns:
- Discount Factor
- Throws:
java.lang.Exception- Thrown if the Discount Factor cannot be calculated
-
forward
public double forward(int date1, int date2) throws java.lang.ExceptionDescription copied from class:MergedDiscountForwardCurveCompute the Forward Rate between two Dates- Specified by:
forwardin classMergedDiscountForwardCurve- Parameters:
date1- First Datedate2- Second Date- Returns:
- The Forward Rate
- Throws:
java.lang.Exception- Thrown if the Forward Rate cannot be calculated
-
zero
public double zero(int date) throws java.lang.ExceptionDescription copied from class:MergedDiscountForwardCurveCalculate the implied rate to the given date- Specified by:
zeroin classMergedDiscountForwardCurve- Parameters:
date- Date- Returns:
- Implied rate
- Throws:
java.lang.Exception- Thrown if the discount factor cannot be calculated
-
forwardRateEstimator
Description copied from class:MergedDiscountForwardCurveRetrieve the Forward Curve that might be implied by the Latent State of this Discount Curve Instance corresponding to the specified Floating Rate Index- Specified by:
forwardRateEstimatorin classMergedDiscountForwardCurve- Parameters:
date- The DateforwardLabel- The Floating Rate Index- Returns:
- The Forward Curve Implied by the Discount Curve Latent State
-
latentStateQuantificationMetric
public java.lang.String latentStateQuantificationMetric()Description copied from class:MergedDiscountForwardCurveRetrieve the Latent State Quantification Metric- Specified by:
latentStateQuantificationMetricin classMergedDiscountForwardCurve- Returns:
- The Latent State Quantification Metric
-
parallelShiftManifestMeasure
public DiscountFactorDiscountCurve parallelShiftManifestMeasure(java.lang.String manifestMeasure, double shift)Description copied from interface:LatentStateCreate a LatentState Instance from the Manifest Measure Parallel Shift- Parameters:
manifestMeasure- The Specified Manifest Measureshift- Parallel shift of the Manifest Measure- Returns:
- New LatentState Instance corresponding to the Parallel Shifted Manifest Measure
-
shiftManifestMeasure
public DiscountFactorDiscountCurve shiftManifestMeasure(int spanIndex, java.lang.String manifestMeasure, double shift)Description copied from interface:LatentStateCreate a LatentState Instance from the Shift of the Specified Manifest Measure- Parameters:
spanIndex- Index into the Span that identifies the InstrumentmanifestMeasure- The Specified Manifest Measureshift- Shift of the Manifest Measure- Returns:
- New LatentState Instance corresponding to the Shift of the Specified Manifest Measure
-
customTweakManifestMeasure
public MergedDiscountForwardCurve customTweakManifestMeasure(java.lang.String manifestMeasure, ManifestMeasureTweak manifestMeasureTweak)Description copied from interface:LatentStateCreate a LatentState Instance from the Manifest Measure Tweak Parameters- Parameters:
manifestMeasure- The Specified Manifest MeasuremanifestMeasureTweak- Manifest Measure Tweak Parameters- Returns:
- New LatentState Instance corresponding to the Tweaked Manifest Measure
-
parallelShiftQuantificationMetric
Description copied from interface:LatentStateCreate a LatentState Instance from the Quantification Metric Parallel Shift- Parameters:
shift- Parallel shift of the Quantification Metric- Returns:
- New LatentState Instance corresponding to the Parallel Shifted Quantification Metric
-
customTweakQuantificationMetric
Description copied from interface:LatentStateCreate a LatentState Instance from the Quantification Metric Tweak Parameters- Parameters:
manifestMeasureTweak- Quantification Metric Tweak Parameters- Returns:
- New LatentState Instance corresponding to the Tweaked Quantification Metric
-
jackDDFDManifestMeasure
Description copied from class:MergedDiscountForwardCurveRetrieve the Manifest Measure Jacobian of the Discount Factor to the given date- Specified by:
jackDDFDManifestMeasurein classMergedDiscountForwardCurve- Parameters:
date- DatestrManifestMeasure- Manifest Measure- Returns:
- The Manifest Measure Jacobian of the Discount Factor to the given date
-
setCCIS
Description copied from interface:CurveSet the Curve Construction Input Set Parameters- Specified by:
setCCISin interfaceCurve- Overrides:
setCCISin classMergedDiscountForwardCurve- Parameters:
curveConstructionInputSet- The Curve Construction Input Set Parameters- Returns:
- TRUE - Inputs successfully Set
-
calibComp
Description copied from interface:CurveRetrieve the Calibration Components- Returns:
- Array of Calibration Components
-
manifestMeasure
Description copied from interface:CurveRetrieve the Manifest Measure Map of the given Instrument used to construct the Curve- Parameters:
instrument- The Calibration Instrument's Code whose Manifest Measure Map is sought- Returns:
- The Manifest Measure Map of the given Instrument used to construct the Curve
-