Package org.drip.state.forward
Class ForwardCurve
java.lang.Object
org.drip.state.forward.ForwardCurve
- All Implemented Interfaces:
Curve,ForwardRateEstimator,LatentState
- Direct Known Subclasses:
BasisSplineForwardRate,FlatForwardForwardCurve
public abstract class ForwardCurve extends java.lang.Object implements ForwardRateEstimator, Curve
ForwardCurve is the stub for the forward curve functionality. It extends the Curve object by
exposing the following functions:
- The name/epoch of the forward rate instance
- The index/currency/tenor associated with the forward rate instance
- Forward Rate to a specific date/tenor
- Generate scenario tweaked Latent State from the base forward curve corresponding to mode adjusted (flat/parallel/custom) manifest measure/quantification metric
- Retrieve array of latent state manifest measure, instrument quantification metric, and the array of calibration components
- Set/retrieve curve construction input instrument sets
- Retrieve the Manifest Measure Jacobian of the Forward Rate to the date
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Forward Latent State Curve Estimator |
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description CalibratableComponent[]calibComp()Retrieve the Calibration Componentsjava.lang.Stringcurrency()Get the CurrencyLatentStatecustomTweakManifestMeasure(java.lang.String manifestMeasure, ManifestMeasureTweak manifestMeasureTweak)Create a LatentState Instance from the Manifest Measure Tweak ParametersLatentStatecustomTweakQuantificationMetric(ManifestMeasureTweak manifestMeasureTweak)Create a LatentState Instance from the Quantification Metric Tweak ParametersJulianDateepoch()Get the Epoch Datedoubleforward(java.lang.String tenor)Calculate the Forward Rate to the tenor implied by the given datedoubleforward(JulianDate date)Calculate the Forward Rate to the given dateForwardLabelindex()Retrieve the Forward Rate Indexabstract WengertJacobianjackDForwardDManifestMeasure(java.lang.String manifestMeasure, int date)Retrieve the Manifest Measure Jacobian of the Forward Rate to the given dateWengertJacobianjackDForwardDManifestMeasure(java.lang.String manifestMeasure, java.lang.String tenor)Retrieve the Manifest Measure Jacobian of the Forward Rate to the date implied by the given TenorWengertJacobianjackDForwardDManifestMeasure(java.lang.String manifestMeasure, JulianDate date)Retrieve the Manifest Measure Jacobian of the Forward Rate to the given dateLatentStateLabellabel()Get the Curve Latent State Identifier LabelCaseInsensitiveTreeMap<java.lang.Double>manifestMeasure(java.lang.String instrumentCode)Retrieve the Manifest Measure Map of the given Instrument used to construct the CurveLatentStateparallelShiftManifestMeasure(java.lang.String manifestMeasure, double shift)Create a LatentState Instance from the Manifest Measure Parallel ShiftLatentStateparallelShiftQuantificationMetric(double shift)Create a LatentState Instance from the Quantification Metric Parallel ShiftbooleansetCCIS(CurveConstructionInputSet curveConstructionInputSet)Set the Curve Construction Input Set ParametersLatentStateshiftManifestMeasure(int spanIndex, java.lang.String manifestMeasure, double shift)Create a LatentState Instance from the Shift of the Specified Manifest Measurejava.lang.Stringtenor()Retrieve the Forward Rate TenorMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drip.state.forward.ForwardRateEstimator
forward
-
Method Details
-
label
Description copied from interface:CurveGet the Curve Latent State Identifier Label -
currency
public java.lang.String currency()Description copied from interface:CurveGet the Currency -
epoch
Description copied from interface:CurveGet the Epoch Date -
tenor
public java.lang.String tenor()Description copied from interface:ForwardRateEstimatorRetrieve the Forward Rate Tenor- Specified by:
tenorin interfaceForwardRateEstimator- Returns:
- The Forward Rate Tenor
-
index
Description copied from interface:ForwardRateEstimatorRetrieve the Forward Rate Index- Specified by:
indexin interfaceForwardRateEstimator- Returns:
- The Forward Rate Index
-
forward
Description copied from interface:ForwardRateEstimatorCalculate the Forward Rate to the given date- Specified by:
forwardin interfaceForwardRateEstimator- Parameters:
date- Date- Returns:
- The Forward Rate
- Throws:
java.lang.Exception- Thrown if the Forward Rate cannot be calculated
-
forward
public double forward(java.lang.String tenor) throws java.lang.ExceptionDescription copied from interface:ForwardRateEstimatorCalculate the Forward Rate to the tenor implied by the given date- Specified by:
forwardin interfaceForwardRateEstimator- Parameters:
tenor- The Tenor- Returns:
- The Forward Rate
- Throws:
java.lang.Exception- Thrown if the Forward Rate cannot be calculated
-
setCCIS
Description copied from interface:CurveSet the Curve Construction Input Set Parameters -
calibComp
Description copied from interface:CurveRetrieve the Calibration Components -
manifestMeasure
Description copied from interface:CurveRetrieve the Manifest Measure Map of the given Instrument used to construct the Curve- Specified by:
manifestMeasurein interfaceCurve- Parameters:
instrumentCode- 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
-
parallelShiftManifestMeasure
Description copied from interface:LatentStateCreate a LatentState Instance from the Manifest Measure Parallel Shift- Specified by:
parallelShiftManifestMeasurein interfaceLatentState- 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 LatentState 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- Specified by:
shiftManifestMeasurein interfaceLatentState- 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 LatentState customTweakManifestMeasure(java.lang.String manifestMeasure, ManifestMeasureTweak manifestMeasureTweak)Description copied from interface:LatentStateCreate a LatentState Instance from the Manifest Measure Tweak Parameters- Specified by:
customTweakManifestMeasurein interfaceLatentState- 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- Specified by:
parallelShiftQuantificationMetricin interfaceLatentState- 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- Specified by:
customTweakQuantificationMetricin interfaceLatentState- Parameters:
manifestMeasureTweak- Quantification Metric Tweak Parameters- Returns:
- New LatentState Instance corresponding to the Tweaked Quantification Metric
-
jackDForwardDManifestMeasure
public abstract WengertJacobian jackDForwardDManifestMeasure(java.lang.String manifestMeasure, int date)Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date- Parameters:
manifestMeasure- Manifest Measuredate- Date- Returns:
- The Manifest Measure Jacobian of the Forward Rate to the given date
-
jackDForwardDManifestMeasure
public WengertJacobian jackDForwardDManifestMeasure(java.lang.String manifestMeasure, JulianDate date)Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date- Parameters:
manifestMeasure- Manifest Measuredate- Date- Returns:
- The Manifest Measure Jacobian of the Forward Rate to the given date
-
jackDForwardDManifestMeasure
public WengertJacobian jackDForwardDManifestMeasure(java.lang.String manifestMeasure, java.lang.String tenor)Retrieve the Manifest Measure Jacobian of the Forward Rate to the date implied by the given Tenor- Parameters:
manifestMeasure- Manifest Measuretenor- Tenor- Returns:
- The Manifest Measure Jacobian of the Forward Rate to the date implied by the given Tenor
-