pub struct GeometricBrownianMotion {
pub initial_value: f64,
pub current_value: f64,
pub current_time: f64,
pub mu: f64,
pub sigma: f64,
pub dt: f64,
}Expand description
Implementation of a geometric Brownian motion using a Euler-Maruyama discretization scheme.
Fields§
§initial_value: f64The initial value of the process.
current_value: f64The current value of the process.
current_time: f64The current time in the process, incremented with each step by the time step dt.
mu: f64The drift coefficient.
sigma: f64The volatility coefficient.
dt: f64The time step size used for advancing the process.
Implementations§
Trait Implementations§
Source§impl Debug for GeometricBrownianMotion
impl Debug for GeometricBrownianMotion
Auto Trait Implementations§
impl Freeze for GeometricBrownianMotion
impl RefUnwindSafe for GeometricBrownianMotion
impl Send for GeometricBrownianMotion
impl Sync for GeometricBrownianMotion
impl Unpin for GeometricBrownianMotion
impl UnwindSafe for GeometricBrownianMotion
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more