pub struct LatticeSolution {
pub price: f64,
pub delta: f64,
pub gamma: f64,
pub theta: f64,
}Expand description
Value and the tree Greeks read off a single backward pass.
Fields§
§price: f64§delta: f64Tree delta from the first layer.
gamma: f64Tree gamma from the second layer.
theta: f64Calendar theta (per year) from the second-layer center vs the root, drift-corrected with the tree’s own delta and gamma so asymmetric trees (Leisen-Reimer, Jarrow-Rudd, Tian) are handled too.
Trait Implementations§
Source§impl Clone for LatticeSolution
impl Clone for LatticeSolution
Source§fn clone(&self) -> LatticeSolution
fn clone(&self) -> LatticeSolution
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 moreimpl Copy for LatticeSolution
Source§impl Debug for LatticeSolution
impl Debug for LatticeSolution
Source§impl PartialEq for LatticeSolution
impl PartialEq for LatticeSolution
impl StructuralPartialEq for LatticeSolution
Auto Trait Implementations§
impl Freeze for LatticeSolution
impl RefUnwindSafe for LatticeSolution
impl Send for LatticeSolution
impl Sync for LatticeSolution
impl Unpin for LatticeSolution
impl UnsafeUnpin for LatticeSolution
impl UnwindSafe for LatticeSolution
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