Struct CreditVolView
pub struct CreditVolView<'a, R: Scalar> {
data: &'a CreditVolSurface,
params: Cow<'a, [R]>,
}Expand description
A credit vol surface lifted into mode R.
Fields§
§data: &'a CreditVolSurface§params: Cow<'a, [R]>Implementations§
§impl<'a, R: Scalar> CreditVolView<'a, R>
impl<'a, R: Scalar> CreditVolView<'a, R>
pub fn vol(&self, expiry_years: f64) -> R
pub fn vol(&self, expiry_years: f64) -> R
The vol at expiry_years, a passive coordinate: flat in vol beyond
the quoted expiries, linear in total variance between them.
pub fn parameters(&self) -> &[R]
pub fn parameters(&self) -> &[R]
The lifted vols, in parameter order.
pub fn passive(&self) -> CreditVolView<'a, f64>
pub fn passive(&self) -> CreditVolView<'a, f64>
The derivative-free projection.
Trait Implementations§
§impl<'a, R: Clone + Scalar> Clone for CreditVolView<'a, R>
impl<'a, R: Clone + Scalar> Clone for CreditVolView<'a, R>
§fn clone(&self) -> CreditVolView<'a, R>
fn clone(&self) -> CreditVolView<'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 CreditVolView<'a, R>
impl<'a, R> RefUnwindSafe for CreditVolView<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for CreditVolView<'a, R>
impl<'a, R> Sync for CreditVolView<'a, R>
impl<'a, R> Unpin for CreditVolView<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for CreditVolView<'a, R>
impl<'a, R> UnwindSafe for CreditVolView<'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