pub enum VarMethod {
Historical,
Parametric,
MonteCarlo {
n_simulations: usize,
seed: u64,
},
CornishFisher,
}Expand description
Method used to compute VaR.
Variants§
Historical
Historical simulation from empirical return distribution.
Parametric
Parametric normal distribution (mean + z-score * sigma).
MonteCarlo
Monte Carlo simulation via Geometric Brownian Motion.
CornishFisher
Cornish-Fisher expansion adjusted for skewness and excess kurtosis.
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