public final class HullWhiteOneFactorPiecewiseConstantParametersProvider extends Object implements org.joda.beans.ImmutableBean, Serializable
Reference: Henrard, M. "The Irony in the derivatives discounting Part II: the crisis", Wilmott Journal, 2010, 2, 301-316
| Modifier and Type | Class and Description |
|---|---|
static class |
HullWhiteOneFactorPiecewiseConstantParametersProvider.Meta
The meta-bean for
HullWhiteOneFactorPiecewiseConstantParametersProvider. |
| Modifier and Type | Method and Description |
|---|---|
double |
alpha(LocalDate startDate,
LocalDate endDate,
LocalDate numeraireDate,
LocalDate maturityDate)
Calculates the alpha value for the specified period with respect to the maturity date.
|
ValueDerivatives |
alphaAdjoint(LocalDate startDate,
LocalDate endDate,
LocalDate numeraireDate,
LocalDate maturityDate)
Calculates the alpha and its derivative values for the specified period with respect to the maturity date.
|
boolean |
equals(Object obj) |
double |
futuresConvexityFactor(LocalDate referenceDate,
LocalDate startDate,
LocalDate endDate)
Calculates the future convexity factor for the specified period at the future reference date.
|
ValueDerivatives |
futuresConvexityFactorAdjoint(LocalDate referenceDate,
LocalDate startDate,
LocalDate endDate)
Calculates the future convexity factor and its derivative for the specified period at the future reference date.
|
DayCount |
getDayCount()
Gets the day count applicable to the model.
|
HullWhiteOneFactorPiecewiseConstantInterestRateModel |
getModel()
Returns a Hull-White one-factor model.
|
HullWhiteOneFactorPiecewiseConstantParameters |
getParameters()
Gets the Hull-White model parameters.
|
ZonedDateTime |
getValuationDateTime()
Gets the valuation date.
|
int |
hashCode() |
static HullWhiteOneFactorPiecewiseConstantParametersProvider.Meta |
meta()
The meta-bean for
HullWhiteOneFactorPiecewiseConstantParametersProvider. |
HullWhiteOneFactorPiecewiseConstantParametersProvider.Meta |
metaBean() |
static HullWhiteOneFactorPiecewiseConstantParametersProvider |
of(HullWhiteOneFactorPiecewiseConstantParameters parameters,
DayCount dayCount,
LocalDate valuationDate,
LocalTime valuationTime,
ZoneId valuationZone)
Obtains an instance from Hull-White model parameters and the date, time and zone for which it is valid.
|
static HullWhiteOneFactorPiecewiseConstantParametersProvider |
of(HullWhiteOneFactorPiecewiseConstantParameters parameters,
DayCount dayCount,
ZonedDateTime valuationDateTime)
Obtains an instance from Hull-White model parameters and the date-time for which it is valid.
|
double |
relativeTime(LocalDate date)
Converts a date to a relative year fraction.
|
String |
toString() |
public static HullWhiteOneFactorPiecewiseConstantParametersProvider of(HullWhiteOneFactorPiecewiseConstantParameters parameters, DayCount dayCount, ZonedDateTime valuationDateTime)
parameters - the Hull-White model parametersdayCount - the day count applicable to the modelvaluationDateTime - the valuation date-timepublic static HullWhiteOneFactorPiecewiseConstantParametersProvider of(HullWhiteOneFactorPiecewiseConstantParameters parameters, DayCount dayCount, LocalDate valuationDate, LocalTime valuationTime, ZoneId valuationZone)
parameters - the Hull-White model parametersdayCount - the day count applicable to the modelvaluationDate - the valuation datevaluationTime - the valuation timevaluationZone - the valuation time zonepublic double futuresConvexityFactor(LocalDate referenceDate, LocalDate startDate, LocalDate endDate)
referenceDate - the reference datestartDate - the start date of the periodendDate - the end date of the periodpublic ValueDerivatives futuresConvexityFactorAdjoint(LocalDate referenceDate, LocalDate startDate, LocalDate endDate)
referenceDate - the reference datestartDate - the start date of the periodendDate - the end date of the periodpublic double relativeTime(LocalDate date)
When the date is after the valuation date, the returned number is negative.
date - the date to find the relative year fraction ofpublic double alpha(LocalDate startDate, LocalDate endDate, LocalDate numeraireDate, LocalDate maturityDate)
The alpha is computed with a bond numeraire of numeraireDate.
startDate - the start date of the periodendDate - the end date of the periodnumeraireDate - the numeraire datematurityDate - the maturity datepublic ValueDerivatives alphaAdjoint(LocalDate startDate, LocalDate endDate, LocalDate numeraireDate, LocalDate maturityDate)
The alpha is computed with a bond numeraire of numeraireDate.
startDate - the start date of the periodendDate - the end date of the periodnumeraireDate - the numeraire datematurityDate - the maturity datepublic HullWhiteOneFactorPiecewiseConstantInterestRateModel getModel()
public static HullWhiteOneFactorPiecewiseConstantParametersProvider.Meta meta()
HullWhiteOneFactorPiecewiseConstantParametersProvider.public HullWhiteOneFactorPiecewiseConstantParametersProvider.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic HullWhiteOneFactorPiecewiseConstantParameters getParameters()
public DayCount getDayCount()
public ZonedDateTime getValuationDateTime()
The volatilities are calibrated for this date-time.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.