Struct quantmath::risk::bumptime::BumpTime [−][src]
pub struct BumpTime { /* fields omitted */ }
Bump that defines all the supported bumps to the spot date and ex-from date. This bump has to live in risk rather than data, because it affects all market data, not just one curve at a time.
Methods
impl BumpTime
[src]
impl BumpTime
pub fn new(
spot_date: Date,
ex_from: Date,
spot_dynamics: SpotDynamics
) -> BumpTime
[src]
pub fn new(
spot_date: Date,
ex_from: Date,
spot_dynamics: SpotDynamics
) -> BumpTime
pub fn apply(
&self,
instruments: &mut Vec<(f64, RcInstrument)>,
bumpable: &mut Bumpable
) -> Result<bool, Error>
[src]
pub fn apply(
&self,
instruments: &mut Vec<(f64, RcInstrument)>,
bumpable: &mut Bumpable
) -> Result<bool, Error>
Applies the bump to the list of instruments. If the list of instruments has not changed, it also applies the bump to the model. If the list of instruments has changed, the model will need to be completely rebuilt. In that case, the method returns true.
pub fn update_instruments(
&self,
instruments: &mut Vec<(f64, RcInstrument)>,
context: &PricingContext,
dependencies: &DependencyCollector
) -> Result<bool, Error>
[src]
pub fn update_instruments(
&self,
instruments: &mut Vec<(f64, RcInstrument)>,
context: &PricingContext,
dependencies: &DependencyCollector
) -> Result<bool, Error>
Creates a fixing table representing any fixings between the old and new spot dates, and applies it to the instruments, modifying the vector if necessary. If any have changed, returns true.
Trait Implementations
impl Clone for BumpTime
[src]
impl Clone for BumpTime
fn clone(&self) -> BumpTime
[src]
fn clone(&self) -> BumpTime
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for BumpTime
[src]
impl Debug for BumpTime