public class BondComponent.BondCalibrator
extends java.lang.Object
Constructor and Description |
---|
BondCalibrator(BondComponent bond)
Constructor: Construct the calibrator from the parent bond.
|
Modifier and Type | Method and Description |
---|---|
double |
calibDiscCurveSpreadFromPrice(ValuationParams valParams,
CurveSurfaceQuoteContainer csqs,
int iWorkoutDate,
double dblWorkoutFactor,
double dblPrice)
Calibrate the bond Z Spread from the market price.
|
double |
calibrateCreditBasisFromPrice(ValuationParams valParams,
CurveSurfaceQuoteContainer csqs,
int iWorkoutDate,
double dblWorkoutFactor,
double dblPrice,
boolean bFlat)
Calibrate the bond Credit Basis from the market price
|
double |
calibrateYieldFromPrice(ValuationParams valParams,
CurveSurfaceQuoteContainer csqs,
int iWorkoutDate,
double dblWorkoutFactor,
double dblPrice)
Calibrate the bond yield from the market price using the root bracketing technique.
|
double |
calibrateZSpreadFromPrice(ValuationParams valParams,
CurveSurfaceQuoteContainer csqs,
int iZeroCurveBaseDC,
int iWorkoutDate,
double dblWorkoutFactor,
double dblPrice)
Calibrate the bond Z Spread from the market price using the root bracketing technique.
|
double |
calibZeroCurveSpreadFromPrice(ValuationParams valParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
int iWorkoutDate,
double dblWorkoutFactor,
double dblPrice)
Calibrate the bond Z Spread from the market price.
|
public BondCalibrator(BondComponent bond) throws java.lang.Exception
bond
- Parentjava.lang.Exception
- Thrown if the inputs are invalidpublic double calibrateYieldFromPrice(ValuationParams valParams, CurveSurfaceQuoteContainer csqs, int iWorkoutDate, double dblWorkoutFactor, double dblPrice) throws java.lang.Exception
valParams
- Valuation Parameterscsqs
- Bond Market ParametersiWorkoutDate
- JulianDate Work-outdblWorkoutFactor
- Work-out factordblPrice
- Price to be calibrated tojava.lang.Exception
- Thrown if the yield cannot be calibratedpublic double calibrateZSpreadFromPrice(ValuationParams valParams, CurveSurfaceQuoteContainer csqs, int iZeroCurveBaseDC, int iWorkoutDate, double dblWorkoutFactor, double dblPrice) throws java.lang.Exception
valParams
- Valuation Parameterscsqs
- Bond Market ParametersiZeroCurveBaseDC
- The Discount Curve to derive the zero curve off ofiWorkoutDate
- JulianDate Work-outdblWorkoutFactor
- Work-out factordblPrice
- Price to be calibrated tojava.lang.Exception
- Thrown if the Z Spread cannot be calibratedpublic double calibDiscCurveSpreadFromPrice(ValuationParams valParams, CurveSurfaceQuoteContainer csqs, int iWorkoutDate, double dblWorkoutFactor, double dblPrice) throws java.lang.Exception
valParams
- Valuation Parameterscsqs
- Bond Market ParametersiWorkoutDate
- JulianDate Work-outdblWorkoutFactor
- Work-out factordblPrice
- Price to be calibrated tojava.lang.Exception
- Thrown if the yield cannot be calibratedpublic double calibZeroCurveSpreadFromPrice(ValuationParams valParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, int iWorkoutDate, double dblWorkoutFactor, double dblPrice) throws java.lang.Exception
valParams
- Valuation Parameterscsqs
- Bond Market Parametersvcp
- Quoting ParametersiWorkoutDate
- JulianDate Work-outdblWorkoutFactor
- Work-out factordblPrice
- Price to be calibrated tojava.lang.Exception
- Thrown if the yield cannot be calibratedpublic double calibrateCreditBasisFromPrice(ValuationParams valParams, CurveSurfaceQuoteContainer csqs, int iWorkoutDate, double dblWorkoutFactor, double dblPrice, boolean bFlat) throws java.lang.Exception
valParams
- Valuation Parameterscsqs
- Bond Market ParametersiWorkoutDate
- JulianDate Work-outdblWorkoutFactor
- Work-out factordblPrice
- Price to be calibrated tobFlat
- TRUE - Calibrate to Flat Curvejava.lang.Exception
- Thrown if the Credit Basis cannot be calibrated