NULL_SER_STRING, VERSION
Constructor and Description |
---|
DerivedZeroCurve(byte[] ab)
DerivedZeroCurve de-serialization from input byte array
|
DerivedZeroCurve(java.util.List<Period> lsPeriod,
double dblWorkoutDate,
double dblCashPayDate,
DiscountCurve dc,
QuotingParams quotingParams,
double dblZCBump)
ZeroCurve constructor from period, work-out, settle, and quoting parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
bumpNodeValue(int iIndex,
double dblValue)
Bumped the node value at the node specified the index by the value
|
double |
calcImpliedRate(double dblDate)
Calculates the implied rate to the given date
|
double |
calcImpliedRate(double dblDt1,
double dblDt2)
Computes the implied rate between 2 dates
|
double |
calcImpliedRate(java.lang.String strTenor)
Calculates the implied rate to the given tenor
|
double |
calcImpliedRate(java.lang.String strTenor1,
java.lang.String strTenor2)
Calculate the implied rate between 2 tenors
|
DiscountCurve |
createBasisRateShiftedCurve(double[] adblDate,
double[] adblBasis)
Creates a shifted curve from an array of basis shifts
|
DiscountCurve |
createParallelRateShiftedCurve(double dblShift)
Creates a parallel rate shifted discount curve
|
Curve |
createParallelShiftedCurve(double dblShift)
Creates a parallel quote shifted curve
|
Curve |
createTweakedCurve(NodeTweakParams ntp)
Creates the curve from the tweaked parameters
|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
java.lang.String |
displayString()
Gets the display String - mostly for informational purposes
|
CalibratableComponent[] |
getCalibComponents()
Retrieves all the calibration components
|
double[] |
getCompQuotes()
Retrieves all the calibration quotes
|
java.lang.String |
getCurrency()
Gets the currency
|
double |
getDF(double dblDate)
Calculates the discount factor to the given date
|
double |
getDF(JulianDate dt)
Calculates the discount factor to the given date
|
double |
getDF(java.lang.String strTenor)
Calculates the discount factor to the given tenor
|
double |
getEffectiveDF(double dblDate1,
double dblDate2)
Computes the time-weighted discount factor between 2 dates
|
double |
getEffectiveDF(JulianDate dt1,
JulianDate dt2)
Computes the time-weighted discount factor between 2 dates
|
double |
getEffectiveDF(java.lang.String strTenor1,
java.lang.String strTenor2)
Computes the time-weighted discount factor between 2 tenors
|
java.lang.String |
getName()
Gets the curve name
|
JulianDate |
getNodeDate(int iIndex)
Gets the date at the node specified by the index
|
double |
getQuote(java.lang.String strInstr)
Retrieve the calibration quote of the given instrument
|
JulianDate |
getStartDate()
Gets the epoch date
|
double |
getZeroRate(double dblDate)
Retrieves the zero rate corresponding to the given date
|
byte[] |
serialize()
Serialize into a byte array.
|
boolean |
setFlatValue(double dblValue)
Sets the flat value across all the nodes
|
void |
setInstrCalibInputs(ValuationParams valParam,
CalibratableComponent[] aCalibInst,
double[] adblCalibQuote,
java.lang.String[] astrCalibMeasure,
java.util.Map<JulianDate,java.util.Map<java.lang.String,java.lang.Double>> mmFixing,
QuotingParams quotingParams)
Sets the calibration inputs
|
boolean |
setNodeValue(int iIndex,
double dblValue)
Sets the value at the node specified by the index
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public DerivedZeroCurve(java.util.List<Period> lsPeriod, double dblWorkoutDate, double dblCashPayDate, DiscountCurve dc, QuotingParams quotingParams, double dblZCBump) throws java.lang.Exception
lsPeriod
- List of bond coupon periodsdblWorkoutDate
- Work-out datedblCashPayDate
- Cash-Pay Datedc
- Discount CurvequotingParams
- Quoting ParametersdblZCBump
- DC Bumpjava.lang.Exception
public DerivedZeroCurve(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if DerivedZeroCurve cannot be properly de-serializedpublic double getDF(double dblDate) throws java.lang.Exception
DiscountCurve
getDF
in class DiscountCurve
dblDate
- Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double getZeroRate(double dblDate) throws java.lang.Exception
ZeroCurve
getZeroRate
in class ZeroCurve
dblDate
- Date for which the zero rate is requestedjava.lang.Exception
- Thrown if the date is not represented in the mappublic boolean setNodeValue(int iIndex, double dblValue)
Curve
iIndex
- node indexdblValue
- node valuepublic boolean bumpNodeValue(int iIndex, double dblValue)
Curve
iIndex
- node indexdblValue
- node bump valuepublic boolean setFlatValue(double dblValue)
Curve
dblValue
- node valuepublic java.lang.String displayString()
Curve
public double[] getCompQuotes()
Curve
public double getQuote(java.lang.String strInstr) throws java.lang.Exception
Curve
java.lang.Exception
public JulianDate getNodeDate(int iIndex)
Curve
iIndex
- node indexpublic CalibratableComponent[] getCalibComponents()
Curve
public java.lang.String getName()
Curve
public Curve createParallelShiftedCurve(double dblShift)
Curve
dblShift
- Parallel shiftpublic Curve createTweakedCurve(NodeTweakParams ntp)
Curve
ntp
- Node Tweak Parameterspublic JulianDate getStartDate()
Curve
public void setInstrCalibInputs(ValuationParams valParam, CalibratableComponent[] aCalibInst, double[] adblCalibQuote, java.lang.String[] astrCalibMeasure, java.util.Map<JulianDate,java.util.Map<java.lang.String,java.lang.Double>> mmFixing, QuotingParams quotingParams)
DiscountCurve
setInstrCalibInputs
in class DiscountCurve
valParam
- ValuationParamsaCalibInst
- Array of calibration instrumentsadblCalibQuote
- Array of calibration quotesastrCalibMeasure
- Array of calibration measuresmmFixing
- Fixings mappublic DiscountCurve createParallelRateShiftedCurve(double dblShift)
DiscountCurve
createParallelRateShiftedCurve
in class DiscountCurve
dblShift
- Parallel shiftpublic DiscountCurve createBasisRateShiftedCurve(double[] adblDate, double[] adblBasis)
DiscountCurve
createBasisRateShiftedCurve
in class DiscountCurve
adblDate
- Array of datesadblBasis
- Array of basispublic java.lang.String getCurrency()
DiscountCurve
getCurrency
in class DiscountCurve
public double getDF(JulianDate dt) throws java.lang.Exception
DiscountCurve
getDF
in class DiscountCurve
dt
- Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double getDF(java.lang.String strTenor) throws java.lang.Exception
DiscountCurve
getDF
in class DiscountCurve
strTenor
- Tenorjava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double getEffectiveDF(double dblDate1, double dblDate2) throws java.lang.Exception
DiscountCurve
getEffectiveDF
in class DiscountCurve
dblDate1
- First DatedblDate2
- Second Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double getEffectiveDF(JulianDate dt1, JulianDate dt2) throws java.lang.Exception
DiscountCurve
getEffectiveDF
in class DiscountCurve
dt1
- First Datedt2
- Second Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double getEffectiveDF(java.lang.String strTenor1, java.lang.String strTenor2) throws java.lang.Exception
DiscountCurve
getEffectiveDF
in class DiscountCurve
strTenor1
- First DatestrTenor2
- Second Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double calcImpliedRate(double dblDt1, double dblDt2) throws java.lang.Exception
DiscountCurve
calcImpliedRate
in class DiscountCurve
dblDt1
- First DatedblDt2
- Second Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double calcImpliedRate(double dblDate) throws java.lang.Exception
DiscountCurve
calcImpliedRate
in class DiscountCurve
dblDate
- Datejava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double calcImpliedRate(java.lang.String strTenor) throws java.lang.Exception
DiscountCurve
calcImpliedRate
in class DiscountCurve
strTenor
- Tenorjava.lang.Exception
- Thrown if the discount factor cannot be calculatedpublic double calcImpliedRate(java.lang.String strTenor1, java.lang.String strTenor2) throws java.lang.Exception
DiscountCurve
calcImpliedRate
in class DiscountCurve
strTenor1
- Tenor startstrTenor2
- Tenor endjava.lang.Exception
public byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer