Struct InflationVolView
pub struct InflationVolView<'a, R: Scalar> {
grid: RateVolView<'a, R>,
displacement: f64,
}Expand description
An inflation vol surface — year-on-year or zero-coupon CPI — lifted into
mode R.
Fields§
§grid: RateVolView<'a, R>§displacement: f64Implementations§
§impl<'a, R: Scalar> InflationVolView<'a, R>
impl<'a, R: Scalar> InflationVolView<'a, R>
pub fn vol(&self, expiry_years: f64, strike: f64) -> R
pub fn vol(&self, expiry_years: f64, strike: f64) -> R
The vol at expiry_years and strike — an absolute YoY rate on a YoY
surface, an annualised zero-coupon rate on a CPI one.
pub fn convention(&self) -> VolConvention
pub fn convention(&self) -> VolConvention
The quoting convention.
pub fn displacement(&self) -> f64
pub fn displacement(&self) -> f64
The lognormal displacement; zero on a CPI surface.
pub fn parameters(&self) -> &[R]
pub fn parameters(&self) -> &[R]
The lifted node vols.
pub fn passive(&self) -> InflationVolView<'a, f64>
pub fn passive(&self) -> InflationVolView<'a, f64>
The derivative-free projection.
Trait Implementations§
§impl<'a, R: Clone + Scalar> Clone for InflationVolView<'a, R>
impl<'a, R: Clone + Scalar> Clone for InflationVolView<'a, R>
§fn clone(&self) -> InflationVolView<'a, R>
fn clone(&self) -> InflationVolView<'a, R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, R> Freeze for InflationVolView<'a, R>
impl<'a, R> RefUnwindSafe for InflationVolView<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for InflationVolView<'a, R>
impl<'a, R> Sync for InflationVolView<'a, R>
impl<'a, R> Unpin for InflationVolView<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for InflationVolView<'a, R>
impl<'a, R> UnwindSafe for InflationVolView<'a, R>where
R: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more