pub enum PriceModel {
Static,
RandomWalk {
volatility: Decimal,
},
MeanReverting {
mean: Decimal,
reversion_speed: Decimal,
volatility: Decimal,
},
Trending {
drift: Decimal,
volatility: Decimal,
},
}Expand description
Price model for simulation.
Variants§
Static
Static price (no changes).
RandomWalk
Random walk with given volatility (daily % std dev).
MeanReverting
Mean reverting with given parameters.
Fields
Trending
Trending with given drift.
Trait Implementations§
Source§impl Clone for PriceModel
impl Clone for PriceModel
impl Copy for PriceModel
Auto Trait Implementations§
impl Forget for PriceModel
impl Freeze for PriceModel
impl Move for PriceModel
impl RefUnwindSafe for PriceModel
impl Send for PriceModel
impl Sync for PriceModel
impl Unpin for PriceModel
impl UnsafeUnpin for PriceModel
impl UnwindSafe for PriceModel
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