public class DiscountingFixedCouponBondPaymentPeriodPricer extends Object
This pricer performs discounting of the fixed coupon payment.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingFixedCouponBondPaymentPeriodPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingFixedCouponBondPaymentPeriodPricer()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
explainPresentValue(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors,
ExplainMapBuilder builder)
Explains the present value of a single fixed coupon payment period.
|
void |
explainPresentValueWithSpread(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors,
ExplainMapBuilder builder,
double zSpread,
CompoundedRateType compoundedRateType,
int periodsPerYear)
Explains the present value of a single fixed coupon payment period with z-spread.
|
double |
forecastValue(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors)
Calculates the forecast value of a single fixed coupon payment period.
|
PointSensitivityBuilder |
forecastValueSensitivity(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors)
Calculates the forecast value sensitivity of a single fixed coupon payment period.
|
double |
presentValue(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors)
Calculates the present value of a single fixed coupon payment period.
|
PointSensitivityBuilder |
presentValueSensitivity(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors)
Calculates the present value sensitivity of a single fixed coupon payment period.
|
PointSensitivityBuilder |
presentValueSensitivityWithSpread(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors,
double zSpread,
CompoundedRateType compoundedRateType,
int periodsPerYear)
Calculates the present value sensitivity of a single fixed coupon payment period with z-spread.
|
double |
presentValueWithSpread(FixedCouponBondPaymentPeriod period,
IssuerCurveDiscountFactors discountFactors,
double zSpread,
CompoundedRateType compoundedRateType,
int periodsPerYear)
Calculates the present value of a single fixed coupon payment period with z-spread.
|
public static final DiscountingFixedCouponBondPaymentPeriodPricer DEFAULT
public DiscountingFixedCouponBondPaymentPeriodPricer()
public double presentValue(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors)
The amount is expressed in the currency of the period. This returns the value of the period with discounting.
The payment date of the period should not be in the past. The result of this method for payment dates in the past is undefined.
period - the period to pricediscountFactors - the discount factor providerpublic double presentValueWithSpread(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors, double zSpread, CompoundedRateType compoundedRateType, int periodsPerYear)
The z-spread is a parallel shift applied to continuously compounded rates or periodic compounded rates of the discounting curve.
The amount is expressed in the currency of the period. This returns the value of the period with discounting.
The payment date of the period should not be in the past. The result of this method for payment dates in the past is undefined.
period - the period to pricediscountFactors - the discount factor providerzSpread - the z-spreadcompoundedRateType - the compounded rate typeperiodsPerYear - the number of periods per yearpublic double forecastValue(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors)
The amount is expressed in the currency of the period. This returns the value of the period with discounting.
The payment date of the period should not be in the past. The result of this method for payment dates in the past is undefined.
The forecast value is z-spread independent.
period - the period to pricediscountFactors - the discount factor providerpublic PointSensitivityBuilder presentValueSensitivity(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors)
The present value sensitivity of the period is the sensitivity of the present value to the underlying curves.
period - the period to pricediscountFactors - the discount factor providerpublic PointSensitivityBuilder presentValueSensitivityWithSpread(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors, double zSpread, CompoundedRateType compoundedRateType, int periodsPerYear)
The z-spread is a parallel shift applied to continuously compounded rates or periodic compounded rates of the discounting curve.
The present value sensitivity of the period is the sensitivity of the present value to the underlying curves.
period - the period to pricediscountFactors - the discount factor providerzSpread - the z-spreadcompoundedRateType - the compounded rate typeperiodsPerYear - the number of periods per yearpublic PointSensitivityBuilder forecastValueSensitivity(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors)
The forecast value sensitivity of the period is the sensitivity of the forecast value to the underlying curves.
The forecast value sensitivity is zero and z-spread independent for the fixed payment.
period - the period to pricediscountFactors - the discount factor providerpublic void explainPresentValue(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors, ExplainMapBuilder builder)
This adds information to the ExplainMapBuilder to aid understanding of the calculation.
period - the period to pricediscountFactors - the discount factor providerbuilder - the builder to populatepublic void explainPresentValueWithSpread(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors, ExplainMapBuilder builder, double zSpread, CompoundedRateType compoundedRateType, int periodsPerYear)
This adds information to the ExplainMapBuilder to aid understanding of the calculation.
The z-spread is a parallel shift applied to continuously compounded rates or periodic compounded rates of the discounting curve.
period - the period to pricediscountFactors - the discount factor providerzSpread - the z-spreadcompoundedRateType - the compounded rate typeperiodsPerYear - the number of periods per yearbuilder - the builder to populateCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.