pub struct LatticeDiagnostics {
pub price: f64,
pub tree_type: BinomialTreeType,
pub steps: usize,
pub params: LatticeParams,
pub elapsed: Duration,
pub spot_tree: Vec<Vec<f64>>,
pub value_tree: Vec<Vec<f64>>,
pub exercise_boundary: Vec<Option<(f64, f64)>>,
pub delta: f64,
pub gamma: f64,
pub theta: f64,
}Expand description
Everything the debug lattice records beyond the price.
Fields§
§price: f64§tree_type: BinomialTreeType§steps: usize§params: LatticeParams§elapsed: DurationWall-clock time of the build + induction.
spot_tree: Vec<Vec<f64>>spot_tree[i][j]: layer i has i + 1 nodes, j up-moves.
value_tree: Vec<Vec<f64>>§exercise_boundary: Vec<Option<(f64, f64)>>Per layer, the (min, max) spot at which early exercise was
optimal; None where the option was never exercised.
delta: f64Tree delta from the first layer.
gamma: f64Tree gamma from the second layer.
theta: f64Tree theta from the second-layer center vs the root, per year
(exact for symmetric trees where that node returns to s0,
approximate otherwise).
Trait Implementations§
Source§impl Clone for LatticeDiagnostics
impl Clone for LatticeDiagnostics
Source§fn clone(&self) -> LatticeDiagnostics
fn clone(&self) -> LatticeDiagnostics
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 moreAuto Trait Implementations§
impl Freeze for LatticeDiagnostics
impl RefUnwindSafe for LatticeDiagnostics
impl Send for LatticeDiagnostics
impl Sync for LatticeDiagnostics
impl Unpin for LatticeDiagnostics
impl UnsafeUnpin for LatticeDiagnostics
impl UnwindSafe for LatticeDiagnostics
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