pub struct BsmTerms {
pub d1: f64,
pub d2: f64,
pub discount: f64,
pub dividend_discount: f64,
pub sqrt_t: f64,
}Expand description
Intermediate terms shared by price and Greeks (d1, d2, discounts).
Teaching: show d1/d2 next to N(d1) stories.
Engineering: rarely needed on the hot path if you only consume price/greeks.
Fields§
§d1: f64§d2: f64§discount: f64§dividend_discount: f64§sqrt_t: f64Trait Implementations§
impl Copy for BsmTerms
impl StructuralPartialEq for BsmTerms
Auto Trait Implementations§
impl Freeze for BsmTerms
impl RefUnwindSafe for BsmTerms
impl Send for BsmTerms
impl Sync for BsmTerms
impl Unpin for BsmTerms
impl UnsafeUnpin for BsmTerms
impl UnwindSafe for BsmTerms
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