Package org.drip.state.govvie
Class GovvieCurve
java.lang.Object
org.drip.state.discount.DiscountCurve
org.drip.state.govvie.GovvieCurve
- All Implemented Interfaces:
Curve,DiscountFactorEstimator,YieldEstimator,LatentState
- Direct Known Subclasses:
BasisSplineGovvieYield,ExplicitBootGovvieCurve
public abstract class GovvieCurve extends DiscountCurve implements YieldEstimator
GovvieCurve is the Stub for the Govvie Curve for the specified Govvie/Treasury. It implements the
following Functionality.
- Retrieve the Yield Frequency
- Retrieve the Yield Day Count
- Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date
- Retrieve the Manifest Measure Jacobian of the Forward Rate to the date implied by the given Tenor
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Govvie 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 Parametersjava.lang.StringdayCount()Retrieve the Yield Day Countdoubledf(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()Get the Epoch DatedoubleforwardYield(int date1, int date2)Estimate the Forward Yield between the specified Datesintfreq()Retrieve the Yield Frequencyabstract 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 instrument)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 MeasuredoubleyieldDF(int iDate, double dblDCF)Calculate the Discount Factor to the given Date Using the specified Day Count Fractiondoubleyld(java.lang.String tenor)Calculate the Yield to the Tenor implied by the given Datedoubleyld(JulianDate date)Calculate the Yield to the given DateMethods 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, waitMethods inherited from interface org.drip.state.govvie.YieldEstimator
yld
-
Method Details
-
epoch
Description copied from interface:CurveGet the Epoch Date- Specified by:
epochin interfaceCurve- Specified by:
epochin interfaceDiscountFactorEstimator- Returns:
- The Epoch Date
-
currency
public java.lang.String currency()Description copied from interface:CurveGet the Currency -
label
Description copied from interface:CurveGet the Curve Latent State Identifier Label -
yld
Description copied from interface:YieldEstimatorCalculate the Yield to the given Date- Specified by:
yldin interfaceYieldEstimator- Parameters:
date- Date- Returns:
- The Yield
- Throws:
java.lang.Exception- Thrown if the Yield cannot be calculated
-
yld
public double yld(java.lang.String tenor) throws java.lang.ExceptionDescription copied from interface:YieldEstimatorCalculate the Yield to the Tenor implied by the given Date- Specified by:
yldin interfaceYieldEstimator- Parameters:
tenor- The Tenor- Returns:
- The Yield
- Throws:
java.lang.Exception- Thrown if the Yield cannot be calculated
-
forwardYield
public double forwardYield(int date1, int date2) throws java.lang.ExceptionDescription copied from interface:YieldEstimatorEstimate the Forward Yield between the specified Dates- Specified by:
forwardYieldin interfaceYieldEstimator- Parameters:
date1- First Datedate2- Second Date- Returns:
- The Forward Yield
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
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
-
yieldDF
public double yieldDF(int iDate, double dblDCF) throws java.lang.ExceptionDescription copied from interface:YieldEstimatorCalculate the Discount Factor to the given Date Using the specified Day Count Fraction- Specified by:
yieldDFin interfaceYieldEstimator- Parameters:
iDate- DatedblDCF- The Day Count Fraction- Returns:
- Discount Factor
- Throws:
java.lang.Exception- Thrown if the Discount Factor 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:
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
-
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
-
freq
public int freq()Retrieve the Yield Frequency- Returns:
- The Yield Frequency
-
dayCount
public java.lang.String dayCount()Retrieve the Yield Day Count- Returns:
- The Yield Day Count
-
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
-