pub struct SABRParameters {
pub alpha: f64,
pub beta: f64,
pub rho: f64,
pub nu: f64,
}Expand description
SABR model parameters
Fields§
§alpha: f64Alpha (initial volatility)
beta: f64Beta (elasticity parameter, typically 0, 0.5, or 1)
rho: f64Rho (correlation between forward and volatility)
nu: f64Nu (volatility of volatility)
Implementations§
Trait Implementations§
Source§impl Clone for SABRParameters
impl Clone for SABRParameters
Source§fn clone(&self) -> SABRParameters
fn clone(&self) -> SABRParameters
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for SABRParameters
impl RefUnwindSafe for SABRParameters
impl Send for SABRParameters
impl Sync for SABRParameters
impl Unpin for SABRParameters
impl UnwindSafe for SABRParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more