pub struct GeometricBrownianMotionProcess {
pub mu: f64,
pub sigma: f64,
}Expand description
Geometric Brownian Motion simulator for asset price modelling.
Models: dS = μ S dt + σ S dW. The exact solution is S_t = S_0 exp((μ - σ²/2)t + σW_t).
Fields§
§mu: f64Drift (expected return) μ.
sigma: f64Volatility σ ≥ 0.
Implementations§
Source§impl GeometricBrownianMotionProcess
impl GeometricBrownianMotionProcess
Trait Implementations§
Source§impl Clone for GeometricBrownianMotionProcess
impl Clone for GeometricBrownianMotionProcess
Source§fn clone(&self) -> GeometricBrownianMotionProcess
fn clone(&self) -> GeometricBrownianMotionProcess
Returns a duplicate of the value. Read more
1.0.0 · 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 GeometricBrownianMotionProcess
impl RefUnwindSafe for GeometricBrownianMotionProcess
impl Send for GeometricBrownianMotionProcess
impl Sync for GeometricBrownianMotionProcess
impl Unpin for GeometricBrownianMotionProcess
impl UnsafeUnpin for GeometricBrownianMotionProcess
impl UnwindSafe for GeometricBrownianMotionProcess
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