Struct CrisisParameters
pub struct CrisisParameters<R: Scalar> {
pub rate: R,
pub jump_mean: R,
pub default_probability: R,
}Expand description
A credit entity’s crises: a Poisson rate κ, an exponential spread jump of
mean m added to the intensity at each, and the probability p that a
crisis defaults at once. Market inputs, each its own risk row.
Fields§
§rate: RThe crisis rate κ, non-negative.
jump_mean: RThe mean spread jump m, non-negative.
default_probability: RThe probability p a crisis defaults at once, in [0, 1].
Implementations§
§impl<R: Scalar> CrisisParameters<R>
impl<R: Scalar> CrisisParameters<R>
pub fn passive(&self) -> CrisisParameters<f64>
pub fn passive(&self) -> CrisisParameters<f64>
The derivative-free projection of the parameters.
Trait Implementations§
§impl<R: Clone + Scalar> Clone for CrisisParameters<R>
impl<R: Clone + Scalar> Clone for CrisisParameters<R>
§fn clone(&self) -> CrisisParameters<R>
fn clone(&self) -> CrisisParameters<R>
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<R: Copy + Scalar> Copy for CrisisParameters<R>
Auto Trait Implementations§
impl<R> Freeze for CrisisParameters<R>where
R: Freeze,
impl<R> RefUnwindSafe for CrisisParameters<R>where
R: RefUnwindSafe,
impl<R> Send for CrisisParameters<R>
impl<R> Sync for CrisisParameters<R>
impl<R> Unpin for CrisisParameters<R>where
R: Unpin,
impl<R> UnsafeUnpin for CrisisParameters<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for CrisisParameters<R>where
R: UnwindSafe,
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