Package org.drip.state.nonlinear
Class FlatYieldGovvieCurve
java.lang.Object
org.drip.state.discount.DiscountCurve
org.drip.state.govvie.GovvieCurve
org.drip.state.govvie.ExplicitBootGovvieCurve
org.drip.state.nonlinear.FlatYieldGovvieCurve
- All Implemented Interfaces:
Curve,ExplicitBootCurve,DiscountFactorEstimator,YieldEstimator,LatentState
public class FlatYieldGovvieCurve extends ExplicitBootGovvieCurve
FlatYieldGovvieCurve manages the Govvie Latent State, using the Flat Yield as the State Response
Representation.
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Nonlinear (i.e., Boot) Latent State Construction |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FlatYieldGovvieCurve(int epochDate, java.lang.String treasuryCode, java.lang.String currency, int[] dateArray, double[] yieldArray)Construct a Govvie curve from an array of dates and Yields -
Method Summary
Modifier and Type Method Description booleanbumpNodeValue(int nodeIndex, double value)Bump the node value at the node specified the index by the valueWengertJacobianjackDForwardDManifestMeasure(java.lang.String manifestMeasure, int date)Retrieve the Manifest Measure Jacobian of the Forward Rate to the given datebooleansetFlatValue(double value)Set the flat value across all the nodesbooleansetNodeValue(int nodeIndex, double value)Set the Value/Slope at the Node specified by the Indexdoubleyld(int date)Calculate the Yield to the given DateMethods inherited from class org.drip.state.govvie.ExplicitBootGovvieCurve
calibComp, manifestMeasure, setCCISMethods inherited from class org.drip.state.govvie.GovvieCurve
currency, customTweakManifestMeasure, customTweakQuantificationMetric, dayCount, df, df, df, effectiveDF, effectiveDF, effectiveDF, epoch, forwardYield, freq, jackDForwardDManifestMeasure, jackDForwardDManifestMeasure, label, parallelShiftManifestMeasure, parallelShiftQuantificationMetric, shiftManifestMeasure, yieldDF, yld, yldMethods 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.representation.LatentState
customTweakManifestMeasure, customTweakQuantificationMetric, parallelShiftManifestMeasure, parallelShiftQuantificationMetric, shiftManifestMeasure
-
Constructor Details
-
FlatYieldGovvieCurve
public FlatYieldGovvieCurve(int epochDate, java.lang.String treasuryCode, java.lang.String currency, int[] dateArray, double[] yieldArray) throws java.lang.ExceptionConstruct a Govvie curve from an array of dates and Yields- Parameters:
epochDate- Epoch DatetreasuryCode- Treasury Codecurrency- CurrencydateArray- Array of DatesyieldArray- Array of Yields- Throws:
java.lang.Exception- Thrown if the curve cannot be created
-
-
Method Details
-
yld
public double yld(int date) throws java.lang.ExceptionDescription copied from interface:YieldEstimatorCalculate the Yield to the given Date- Parameters:
date- Date- Returns:
- The Yield
- Throws:
java.lang.Exception- Thrown if the Yield cannot be calculated
-
setNodeValue
public boolean setNodeValue(int nodeIndex, double value)Description copied from interface:ExplicitBootCurveSet the Value/Slope at the Node specified by the Index- Parameters:
nodeIndex- Node Indexvalue- Node Value- Returns:
- Success (true), failure (false)
-
bumpNodeValue
public boolean bumpNodeValue(int nodeIndex, double value)Description copied from interface:ExplicitBootCurveBump the node value at the node specified the index by the value- Parameters:
nodeIndex- node indexvalue- node bump value- Returns:
- Success (true), failure (false)
-
setFlatValue
public boolean setFlatValue(double value)Description copied from interface:ExplicitBootCurveSet the flat value across all the nodes- Parameters:
value- node value- Returns:
- Success (true), failure (false)
-
jackDForwardDManifestMeasure
Description copied from class:GovvieCurveRetrieve the Manifest Measure Jacobian of the Forward Rate to the given date- Specified by:
jackDForwardDManifestMeasurein classGovvieCurve- Parameters:
manifestMeasure- Manifest Measuredate- Date- Returns:
- The Manifest Measure Jacobian of the Forward Rate to the given date
-