Struct SsviSlice
pub struct SsviSlice { /* private fields */ }Implementations§
§impl SsviSlice
impl SsviSlice
pub fn new(
expiry: SurfaceTenor,
theta: f64,
rho: f64,
phi: f64,
) -> Result<Self, FerroRiskError>
pub fn new( expiry: SurfaceTenor, theta: f64, rho: f64, phi: f64, ) -> Result<Self, FerroRiskError>
pub const fn expiry(self) -> SurfaceTenor
pub const fn theta(self) -> f64
pub const fn rho(self) -> f64
pub const fn phi(self) -> f64
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 SsviSlice
impl Clone for SsviSlice
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl SurfaceSmile for SsviSlice
impl SurfaceSmile for SsviSlice
§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 SsviSlice
impl StructuralPartialEq for SsviSlice
Auto Trait Implementations§
impl Freeze for SsviSlice
impl RefUnwindSafe for SsviSlice
impl Send for SsviSlice
impl Sync for SsviSlice
impl Unpin for SsviSlice
impl UnsafeUnpin for SsviSlice
impl UnwindSafe for SsviSlice
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)