Struct SviSmile
pub struct SviSmile { /* private fields */ }Implementations§
§impl SviSmile
impl SviSmile
pub fn new(
expiry: SurfaceTenor,
parameters: SviRawParameters,
) -> Result<Self, FerroRiskError>
pub fn new( expiry: SurfaceTenor, parameters: SviRawParameters, ) -> Result<Self, FerroRiskError>
pub fn from_natural(
expiry: SurfaceTenor,
parameters: SviNaturalParameters,
) -> Result<Self, FerroRiskError>
pub fn from_natural( expiry: SurfaceTenor, parameters: SviNaturalParameters, ) -> Result<Self, FerroRiskError>
pub const fn expiry(self) -> SurfaceTenor
pub const fn parameters(self) -> SviRawParameters
pub fn total_variance(self, log_moneyness: f64) -> Result<f64, FerroRiskError>
pub fn total_variance(self, log_moneyness: f64) -> Result<f64, FerroRiskError>
pub fn black_vol(
self,
market: &SurfaceMarketContext,
strike: f64,
) -> Result<f64, FerroRiskError>
pub fn black_vol( self, market: &SurfaceMarketContext, strike: f64, ) -> Result<f64, FerroRiskError>
Trait Implementations§
§impl Clone for SviSmile
impl Clone for SviSmile
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl SurfaceSmile for SviSmile
impl SurfaceSmile for SviSmile
§fn expiry(&self) -> SurfaceTenor
fn expiry(&self) -> SurfaceTenor
§fn black_vol(
&self,
market: &SurfaceMarketContext,
strike: f64,
) -> Result<f64, FerroRiskError>
fn black_vol( &self, market: &SurfaceMarketContext, strike: f64, ) -> Result<f64, FerroRiskError>
§fn effective_forward(
&self,
market: &SurfaceMarketContext,
) -> Result<f64, FerroRiskError>
fn effective_forward( &self, market: &SurfaceMarketContext, ) -> Result<f64, FerroRiskError>
impl Copy for SviSmile
impl StructuralPartialEq for SviSmile
Auto Trait Implementations§
impl Freeze for SviSmile
impl RefUnwindSafe for SviSmile
impl Send for SviSmile
impl Sync for SviSmile
impl Unpin for SviSmile
impl UnsafeUnpin for SviSmile
impl UnwindSafe for SviSmile
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)