Struct SabrParams
pub struct SabrParams<R> {
pub alpha: R,
pub beta: f64,
pub rho: R,
pub nu: R,
pub shift: f64,
}Expand description
The SABR parameters a smile is read at.
Fields§
§alpha: RThe initial vol, in the formula’s units.
beta: f64The CEV exponent — configuration, not risk.
rho: RThe correlation of the forward and its vol.
nu: RThe vol of vol.
shift: f64The displacement added to the forward and the strike.
Trait Implementations§
§impl<R: Clone> Clone for SabrParams<R>
impl<R: Clone> Clone for SabrParams<R>
§fn clone(&self) -> SabrParams<R>
fn clone(&self) -> SabrParams<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 moreimpl<R: Copy> Copy for SabrParams<R>
§impl<R: Debug> Debug for SabrParams<R>
impl<R: Debug> Debug for SabrParams<R>
§impl<R: PartialEq> PartialEq for SabrParams<R>
impl<R: PartialEq> PartialEq for SabrParams<R>
impl<R: PartialEq> StructuralPartialEq for SabrParams<R>
Auto Trait Implementations§
impl<R> Freeze for SabrParams<R>where
R: Freeze,
impl<R> RefUnwindSafe for SabrParams<R>where
R: RefUnwindSafe,
impl<R> Send for SabrParams<R>where
R: Send,
impl<R> Sync for SabrParams<R>where
R: Sync,
impl<R> Unpin for SabrParams<R>where
R: Unpin,
impl<R> UnsafeUnpin for SabrParams<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for SabrParams<R>where
R: 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