Package org.drip.state.creator
Class ScenarioFXCurveBuilder
java.lang.Object
org.drip.state.creator.ScenarioFXCurveBuilder
public class ScenarioFXCurveBuilder
extends java.lang.Object
ScenarioFXCurveBuilder implements the construction of the scenario FX Curve using the input FX
Curve instruments. It implements the following Functions:
- Build the Shape Preserving FX Curve using the Custom Parameters
- Construct an instance of the Shape Preserver of the desired basis type, using the specified basis set builder parameters
- Construct an Instance of the Shape Preserver of the Cubic Polynomial Type, using the Specified Basis Set Builder Parameters
- Create an Instance of the Custom Splined FX Forward Curve
- Create an Instance of the Cubic Polynomial Splined FX Forward Curve
- Create an Instance of the Quartic Polynomial Splined FX Forward Curve
- Create an Instance of the Kaklis-Pandelis Splined FX Forward Curve
- Create an Instance of the KLK Hyperbolic Splined FX Forward Curve
- Create an Instance of the KLK Rational Linear Splined FX Forward Curve
- Create an Instance of the KLK Rational Quadratic Splined FX Forward Curve
Module | Product Core Module |
Library | Fixed Income Analytics |
Project | Latent State Inference and Creation Utilities |
Package | Scenario State Curve/Surface Builders |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ScenarioFXCurveBuilder()
-
Method Summary
Modifier and Type Method Description static FXCurve
CubicPolynomialCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot)
Create an Instance of the Cubic Polynomial Splined FX Forward Curvestatic FXCurve
CubicPolyShapePreserver(java.lang.String name, CurrencyPair currencyPair, int spotDate, CalibratableComponent[] calibratableComponentArray, double[] quoteArray, java.lang.String manifestMeasure, double fxSpot)
Construct an Instance of the Shape Preserver of the Cubic Polynomial Type, using the Specified Basis Set Builder Parameters.static FXCurve
CustomSplineCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, SegmentCustomBuilderControl segmentCustomBuilderControl, double fxSpot)
Create an Instance of the Custom Splined FX Forward Curvestatic FXCurve
KaklisPandelisCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot)
Create an Instance of the Kaklis-Pandelis Splined FX Forward Curvestatic FXCurve
KLKHyperbolicCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot, double tension)
Create an Instance of the KLK Hyperbolic Splined FX Forward Curvestatic FXCurve
KLKRationalLinearCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot, double tension)
Create an Instance of the KLK Rational Linear Splined FX Forward Curvestatic FXCurve
KLKRationalQuadraticCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot, double tension)
Create an Instance of the KLK Rational Quadratic Splined FX Forward Curvestatic FXCurve
QuarticPolynomialCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot)
Create an Instance of the Quartic Polynomial Splined FX Forward Curvestatic FXCurve
ShapePreservingFXCurve(java.lang.String name, CurrencyPair currencyPair, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, java.lang.String basisType, FunctionSetBuilderParams functionSetBuilderParams, CalibratableComponent[] calibratableComponentArray, java.lang.String manifestMeasure, double[] quoteArray, double epochResponse)
Construct an instance of the Shape Preserver of the desired basis type, using the specified basis set builder parameters.static FXCurve
ShapePreservingFXCurve(java.lang.String name, CurrencyPair currencyPair, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, CalibratableComponent[] calibratableComponentArray, java.lang.String manifestMeasure, double[] quoteArray, double epochResponse, SegmentCustomBuilderControl segmentCustomBuilderControl)
Construct an instance of the Shape Preserver of the desired basis type, using the specified basis set builder parameters.static FXCurve
ShapePreservingFXCurve(LinearLatentStateCalibrator linearLatentStateCalibrator, LatentStateStretchSpec[] latentStateStretchSpecArray, CurrencyPair currencyPair, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, double epochResponse)
Build the Shape Preserving FX Curve using the Custom ParametersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScenarioFXCurveBuilder
public ScenarioFXCurveBuilder()
-
-
Method Details
-
ShapePreservingFXCurve
public static final FXCurve ShapePreservingFXCurve(LinearLatentStateCalibrator linearLatentStateCalibrator, LatentStateStretchSpec[] latentStateStretchSpecArray, CurrencyPair currencyPair, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, double epochResponse)Build the Shape Preserving FX Curve using the Custom Parameters- Parameters:
linearLatentStateCalibrator
- The Linear Latent State Calibrator InstancelatentStateStretchSpecArray
- Array of the Latent State StretchescurrencyPair
- The FX Currency PairvaluationParams
- Valuation ParameterscreditPricerParams
- Pricer ParameterscurveSurfaceQuoteContainer
- Market ParametersvaluationCustomizationParams
- Quoting ParametersepochResponse
- The Starting Response Value- Returns:
- Instance of the Shape Preserving Discount Curve
-
ShapePreservingFXCurve
public static final FXCurve ShapePreservingFXCurve(java.lang.String name, CurrencyPair currencyPair, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, CalibratableComponent[] calibratableComponentArray, java.lang.String manifestMeasure, double[] quoteArray, double epochResponse, SegmentCustomBuilderControl segmentCustomBuilderControl)Construct an instance of the Shape Preserver of the desired basis type, using the specified basis set builder parameters.- Parameters:
name
- Curve NamecurrencyPair
- The FX Currency PairvaluationParams
- Valuation ParameterscreditPricerParams
- Pricer ParameterscurveSurfaceQuoteContainer
- Market ParametersvaluationCustomizationParams
- Quoting ParameterscalibratableComponentArray
- Array of Calibration ComponentsmanifestMeasure
- The Calibration Manifest MeasurequoteArray
- Array of Calibration QuotesepochResponse
- The Stretch Start DFsegmentCustomBuilderControl
- Segment Custom Builder Control Parameters- Returns:
- Instance of the Shape Preserver of the desired basis type
-
ShapePreservingFXCurve
public static final FXCurve ShapePreservingFXCurve(java.lang.String name, CurrencyPair currencyPair, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, java.lang.String basisType, FunctionSetBuilderParams functionSetBuilderParams, CalibratableComponent[] calibratableComponentArray, java.lang.String manifestMeasure, double[] quoteArray, double epochResponse)Construct an instance of the Shape Preserver of the desired basis type, using the specified basis set builder parameters.- Parameters:
name
- Curve NamecurrencyPair
- The FX Currency PairvaluationParams
- Valuation ParameterscreditPricerParams
- Pricer ParameterscurveSurfaceQuoteContainer
- Market ParametersvaluationCustomizationParams
- Quoting ParametersbasisType
- The Basis TypefunctionSetBuilderParams
- The Function Set Basis ParameterscalibratableComponentArray
- Array of Calibration ComponentsmanifestMeasure
- The Calibration Manifest MeasurequoteArray
- Array of Calibration QuotesepochResponse
- The Stretch Start DF- Returns:
- Instance of the Shape Preserver of the desired basis type
-
CubicPolyShapePreserver
public static final FXCurve CubicPolyShapePreserver(java.lang.String name, CurrencyPair currencyPair, int spotDate, CalibratableComponent[] calibratableComponentArray, double[] quoteArray, java.lang.String manifestMeasure, double fxSpot)Construct an Instance of the Shape Preserver of the Cubic Polynomial Type, using the Specified Basis Set Builder Parameters.- Parameters:
name
- Curve NamecurrencyPair
- The FX Currency PairspotDate
- Spot DatecalibratableComponentArray
- Array of Calibration ComponentsquoteArray
- Array of Calibration QuotesmanifestMeasure
- The Calibration Manifest MeasurefxSpot
- The FX Spot- Returns:
- Instance of the Shape Preserver of the Cubic Polynomial Type
-
CustomSplineCurve
public static final FXCurve CustomSplineCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, SegmentCustomBuilderControl segmentCustomBuilderControl, double fxSpot)Create an Instance of the Custom Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardssegmentCustomBuilderControl
- The Segment Custom Builder ControlfxSpot
- The FX Spot- Returns:
- The Instance of the FX Forward Curve
-
CubicPolynomialCurve
public static final FXCurve CubicPolynomialCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot)Create an Instance of the Cubic Polynomial Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardsfxSpot
- The FX Spot- Returns:
- The Instance of the FX Forward Curve
-
QuarticPolynomialCurve
public static final FXCurve QuarticPolynomialCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot)Create an Instance of the Quartic Polynomial Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardsfxSpot
- The FX Spot- Returns:
- The Instance of the FX Forward Curve
-
KaklisPandelisCurve
public static FXCurve KaklisPandelisCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot)Create an Instance of the Kaklis-Pandelis Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardsfxSpot
- The FX Spot- Returns:
- The Instance of the FX Forward Curve
-
KLKHyperbolicCurve
public static final FXCurve KLKHyperbolicCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot, double tension)Create an Instance of the KLK Hyperbolic Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardsfxSpot
- The FX Spottension
- The Tension Parameter- Returns:
- The Instance of the FX Forward Curve
-
KLKRationalLinearCurve
public static final FXCurve KLKRationalLinearCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot, double tension)Create an Instance of the KLK Rational Linear Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardsfxSpot
- The FX Spottension
- The Tension Parameter- Returns:
- The Instance of the FX Forward Curve
-
KLKRationalQuadraticCurve
public static final FXCurve KLKRationalQuadraticCurve(java.lang.String name, JulianDate startDate, CurrencyPair currencyPair, java.lang.String[] tenorArray, double[] fxForwardArray, double fxSpot, double tension)Create an Instance of the KLK Rational Quadratic Splined FX Forward Curve- Parameters:
name
- Curve NamestartDate
- The Tenor Start DatecurrencyPair
- The FX Currency PairtenorArray
- Array of the TenorsfxForwardArray
- Array of the FX ForwardsfxSpot
- The FX Spottension
- The Tension Parameter- Returns:
- The Instance of the FX Forward Curve
-