pub enum VarMethod {
Historical,
Parametric,
MonteCarlo {
simulations: usize,
seed: u64,
},
}Expand description
Method used to compute VaR.
Variants§
Historical
Historical simulation from empirical return distribution.
Parametric
Parametric normal distribution using Cornish-Fisher z-scores.
MonteCarlo
Monte Carlo simulation using LCG + Box-Muller transform.
Trait Implementations§
impl StructuralPartialEq for VarMethod
Auto Trait Implementations§
impl Freeze for VarMethod
impl RefUnwindSafe for VarMethod
impl Send for VarMethod
impl Sync for VarMethod
impl Unpin for VarMethod
impl UnsafeUnpin for VarMethod
impl UnwindSafe for VarMethod
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