Struct SmoothedCalibration
pub struct SmoothedCalibration {
pub curve: PiecewiseDiscount,
pub residuals: Vec<f64>,
pub roughness: f64,
pub iterations: usize,
pub smoothness: f64,
}Expand description
A discount curve fitted globally, trading repricing error for smoothness of the pillar log discount factors — and saying so: it carries no provenance, because it reprices no rung exactly.
Fields§
§curve: PiecewiseDiscountThe fitted curve, under the scheme the fit was asked for.
residuals: Vec<f64>Each rung’s repriced quote less its declared quote, in the quote’s own units, in rung order.
roughness: f64The sum of squared second divided differences of the log discount factor at the interior pillars — what the fit was asked to keep small. Under log-linear interpolation this is exactly the sum of squared jumps in the segment forward rate.
iterations: usizeLevenberg–Marquardt iterations that proposed an accepted step.
smoothness: f64The smoothness the curve was fitted at.
Trait Implementations§
§impl Clone for SmoothedCalibration
impl Clone for SmoothedCalibration
§fn clone(&self) -> SmoothedCalibration
fn clone(&self) -> SmoothedCalibration
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 moreAuto Trait Implementations§
impl Freeze for SmoothedCalibration
impl RefUnwindSafe for SmoothedCalibration
impl Send for SmoothedCalibration
impl Sync for SmoothedCalibration
impl Unpin for SmoothedCalibration
impl UnsafeUnpin for SmoothedCalibration
impl UnwindSafe for SmoothedCalibration
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