java.lang.Object
net.finmath.marketdata.model.curves.CurveFactory
A collection of convenient methods constructing some more specialized curves.
- Version:
- 1.0
- Author:
- Christian Fries
-
Method Summary
Modifier and TypeMethodDescriptionstatic Curve
createIndexCurveWithSeasonality(String name, LocalDate referenceDate, Map<LocalDate,Double> indexFixings, Map<String,Double> seasonalityAdjustments, Integer seasonalAveragingNumberOfYears, Map<LocalDate,Double> annualizedZeroRates, String forwardsFixingLag, String forwardsFixingType)
Creates a monthly index curve with seasonality and past fixings.
-
Method Details
-
createIndexCurveWithSeasonality
public static Curve createIndexCurveWithSeasonality(String name, LocalDate referenceDate, Map<LocalDate,Double> indexFixings, Map<String,Double> seasonalityAdjustments, Integer seasonalAveragingNumberOfYears, Map<LocalDate,Double> annualizedZeroRates, String forwardsFixingLag, String forwardsFixingType)Creates a monthly index curve with seasonality and past fixings. This methods creates an index curve (e.g. for a CPI index) using providedannualizedZeroRates
for the forwards (expected future CPI values) andindexFixings
for the past fixings. It may also "overlay" the future values with a seasonality adjustment. The seasonality adjustment is either taken from adjustment factors provided inseasonalityAdjustments
or (if that argument is null) estimated from theindexFixings
. The the latter case useseasonalAveragingNumerOfYears
to specify the number of years which should be used to estimate the seasonality adjustments.- Parameters:
name
- The name of the curve.referenceDate
- The reference date of the curve.indexFixings
- A Map<LocalDate, Double> of past fixings.seasonalityAdjustments
- A Map<String, Double> of seasonality adjustments (annualized continuously compounded rates for the given month, i.e., the seasonality factor is exp(seasonalityAdjustment/12)), where the String keys are "january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december".seasonalAveragingNumberOfYears
- If seasonalityAdjustments is null you may provide an integer representing a number of years to have the seasonality estimated from the past fixings inindexFixings
.annualizedZeroRates
- Map<LocalDate, Double> of annualized zero rates for given maturities.forwardsFixingLag
- The fixing lag (e.g. "-3M" for -3 month)forwardsFixingType
- The fixing type (e.g. "endOfMonth")- Returns:
- An index curve.
-