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 boolean
bumpNodeValue(int nodeIndex, double value)
Bump the node value at the node specified the index by the valueWengertJacobian
jackDForwardDManifestMeasure(java.lang.String manifestMeasure, int date)
Retrieve the Manifest Measure Jacobian of the Forward Rate to the given dateboolean
setFlatValue(double value)
Set the flat value across all the nodesboolean
setNodeValue(int nodeIndex, double value)
Set the Value/Slope at the Node specified by the Indexdouble
yld(int date)
Calculate the Yield to the given DateMethods inherited from class org.drip.state.govvie.ExplicitBootGovvieCurve
calibComp, manifestMeasure, setCCIS
Methods 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, yld
Methods inherited from class org.drip.state.discount.DiscountCurve
flatForward, flatNativeForward, flatNativeForward, flatNativeForwardEI
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:YieldEstimator
Calculate 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:ExplicitBootCurve
Set 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:ExplicitBootCurve
Bump 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:ExplicitBootCurve
Set the flat value across all the nodes- Parameters:
value
- node value- Returns:
- Success (true), failure (false)
-
jackDForwardDManifestMeasure
Description copied from class:GovvieCurve
Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date- Specified by:
jackDForwardDManifestMeasure
in classGovvieCurve
- Parameters:
manifestMeasure
- Manifest Measuredate
- Date- Returns:
- The Manifest Measure Jacobian of the Forward Rate to the given date
-