pub struct DensityReport {
pub integral: f64,
pub min_density: f64,
pub is_non_negative: bool,
}Expand description
A diagnostic report on the risk-neutral density of a raw SVI slice.
The integral over a wide log-moneyness window should be close to 1
for an arbitrage-free slice; a value far from 1, or min_density < 0,
signals butterfly arbitrage or a numerically extreme slice.
Fields§
§integral: f64Numerical integral of p over the diagnostic window.
min_density: f64Smallest density value observed on the integration grid.
is_non_negative: booltrue if min_density >= 0 over the diagnostic window.
Trait Implementations§
Source§impl Clone for DensityReport
impl Clone for DensityReport
Source§fn clone(&self) -> DensityReport
fn clone(&self) -> DensityReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DensityReport
impl Debug for DensityReport
Source§impl PartialEq for DensityReport
impl PartialEq for DensityReport
Source§fn eq(&self, other: &DensityReport) -> bool
fn eq(&self, other: &DensityReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DensityReport
impl StructuralPartialEq for DensityReport
Auto Trait Implementations§
impl Freeze for DensityReport
impl RefUnwindSafe for DensityReport
impl Send for DensityReport
impl Sync for DensityReport
impl Unpin for DensityReport
impl UnsafeUnpin for DensityReport
impl UnwindSafe for DensityReport
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