pub struct ArithmeticBrownianMotion {
pub mu: f64,
pub sigma: f64,
pub n_paths: usize,
pub n_steps: usize,
pub t_end: f64,
pub s_0: f64,
}Expand description
Arithmetic Brownian Motion (ABM) simulates the asset price over time using the formula: dS = μ * dt + σ * dW
Fields§
§mu: f64§sigma: f64§n_paths: usize§n_steps: usize§t_end: f64§s_0: f64Implementations§
Auto Trait Implementations§
impl Freeze for ArithmeticBrownianMotion
impl RefUnwindSafe for ArithmeticBrownianMotion
impl Send for ArithmeticBrownianMotion
impl Sync for ArithmeticBrownianMotion
impl Unpin for ArithmeticBrownianMotion
impl UnsafeUnpin for ArithmeticBrownianMotion
impl UnwindSafe for ArithmeticBrownianMotion
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