Struct LocalVolSurfaceGrid
pub struct LocalVolSurfaceGrid { /* private fields */ }Implementations§
§impl LocalVolSurfaceGrid
impl LocalVolSurfaceGrid
pub fn from_dupire_grid(
market: SurfaceMarketContext,
grid: DupireExtractionGrid,
) -> Result<Self, FerroRiskError>
pub fn from_dupire_grid( market: SurfaceMarketContext, grid: DupireExtractionGrid, ) -> Result<Self, FerroRiskError>
pub fn from_vol_surface<S: VolSurface>(
surface: &S,
market: &SurfaceMarketContext,
expiries: &[f64],
log_moneyness: &[f64],
policy: &DupireExtractionPolicy,
) -> Result<Self, FerroRiskError>
pub fn from_vol_surface<S: VolSurface>( surface: &S, market: &SurfaceMarketContext, expiries: &[f64], log_moneyness: &[f64], policy: &DupireExtractionPolicy, ) -> Result<Self, FerroRiskError>
pub const fn market(&self) -> &SurfaceMarketContext
pub fn expiries(&self) -> &[f64]
pub fn log_moneyness(&self) -> &[f64]
pub fn local_variance(&self) -> &[Vec<f64>]
pub fn points(&self) -> &[DupireLocalVolPoint]
pub const fn diagnostics(&self) -> &DupireExtractionDiagnostics
pub fn local_variance_at(
&self,
expiry: f64,
strike: f64,
) -> Result<f64, FerroRiskError>
pub fn local_variance_at( &self, expiry: f64, strike: f64, ) -> Result<f64, FerroRiskError>
pub fn local_volatility_at(
&self,
expiry: f64,
strike: f64,
) -> Result<f64, FerroRiskError>
pub fn local_volatility_at( &self, expiry: f64, strike: f64, ) -> Result<f64, FerroRiskError>
Trait Implementations§
§impl Clone for LocalVolSurfaceGrid
impl Clone for LocalVolSurfaceGrid
§fn clone(&self) -> LocalVolSurfaceGrid
fn clone(&self) -> LocalVolSurfaceGrid
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl PartialEq for LocalVolSurfaceGrid
impl PartialEq for LocalVolSurfaceGrid
impl StructuralPartialEq for LocalVolSurfaceGrid
Auto Trait Implementations§
impl Freeze for LocalVolSurfaceGrid
impl RefUnwindSafe for LocalVolSurfaceGrid
impl Send for LocalVolSurfaceGrid
impl Sync for LocalVolSurfaceGrid
impl Unpin for LocalVolSurfaceGrid
impl UnsafeUnpin for LocalVolSurfaceGrid
impl UnwindSafe for LocalVolSurfaceGrid
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)