Class 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 Details

    • FlatYieldGovvieCurve

      public FlatYieldGovvieCurve​(int epochDate, java.lang.String treasuryCode, java.lang.String currency, int[] dateArray, double[] yieldArray) throws java.lang.Exception
      Construct a Govvie curve from an array of dates and Yields
      Parameters:
      epochDate - Epoch Date
      treasuryCode - Treasury Code
      currency - Currency
      dateArray - Array of Dates
      yieldArray - 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.Exception
      Description 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 Index
      value - 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 index
      value - 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

      public WengertJacobian jackDForwardDManifestMeasure​(java.lang.String manifestMeasure, int date)
      Description copied from class: GovvieCurve
      Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date
      Specified by:
      jackDForwardDManifestMeasure in class GovvieCurve
      Parameters:
      manifestMeasure - Manifest Measure
      date - Date
      Returns:
      The Manifest Measure Jacobian of the Forward Rate to the given date