pub struct RiskConfig {
pub horizon: f64,
pub spot_vol: f64,
pub vol_of_vol: f64,
pub spot_vol_corr: f64,
pub scenarios: usize,
pub confidence: f64,
pub seed: u64,
}Expand description
Scenario-generation settings for portfolio VaR.
Fields§
§horizon: f64Horizon in years (1 trading day = 1/252).
spot_vol: f64Annualized volatility of the underlying’s return.
vol_of_vol: f64Annualized volatility of the implied-vol move (absolute, e.g. 0.8 means a 1-day vol move of ~0.8/sqrt(252) ~ 5 vol points).
spot_vol_corr: f64Spot-vol move correlation (negative in equity markets).
scenarios: usize§confidence: f64§seed: u64Trait Implementations§
Source§impl Clone for RiskConfig
impl Clone for RiskConfig
Source§fn clone(&self) -> RiskConfig
fn clone(&self) -> RiskConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RiskConfig
Source§impl Debug for RiskConfig
impl Debug for RiskConfig
Auto Trait Implementations§
impl Freeze for RiskConfig
impl RefUnwindSafe for RiskConfig
impl Send for RiskConfig
impl Sync for RiskConfig
impl Unpin for RiskConfig
impl UnsafeUnpin for RiskConfig
impl UnwindSafe for RiskConfig
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