Module inflation
Expand description
Inflation term structures: a projected price-index level.
A third closed set, by the same argument that separates credit from discounting: an inflation curve answers with an index level, not a discount factor or a survival probability, so it carries its own evaluation trait rather than methods it cannot answer.
Like every other curve, it sits behind a trait object. Nothing here is un-object-safe: the lift is a generic method on the closed storage enum, and the per-mode evaluation trait is an ordinary object-safe trait.
Structs§
- Piecewise
Inflation - A piecewise inflation curve over
(date, level)nodes, with optional twelve-month seasonality. - Piecewise
Inflation View PiecewiseInflationlifted into one pricing mode.- Shocked
Inflation - A base inflation curve under a named move in its zero inflation rate.
- Shocked
Inflation View ShockedInflationlifted into one pricing mode.
Enums§
- Inflation
- A stored inflation term structure. Passive parameters, no AD state.
- Inflation
View - An
Inflationcurve lifted into one pricing mode. - Level
Interpolation - How projected levels between nodes are computed.
Traits§
- Inflation
Curve - What an inflation pricer sees. One question, one mode.
Functions§
- lagged_
observation - The observation date a flow paying on
dateis indexed off:dateless the indexation lag, in whole months. - signed_
years 🔒 - Years from
referencetodate, negative for a date before it. ACT/ACT and BUS/252 count a reversed pair as zero, which would stack every history node att = 0.