Struct CurveRefit
pub struct CurveRefit {
pub reference: NaiveDate,
pub rungs: Vec<Rung>,
pub tolerance: Tolerance,
pub scheme: Interpolation,
pub form: RefitForm,
}Expand description
The inputs a rate curve was calibrated from, less the published data a
market carries: enough to solve the same ladder again — at the same quotes,
or at quotes a scenario moved. The rate twin of SurvivalRefit.
Fields§
§reference: NaiveDateThe curve’s reference date.
rungs: Vec<Rung>The rungs, in solve order.
tolerance: ToleranceHow hard each pillar was solved.
scheme: InterpolationThe interpolation scheme solved under.
form: RefitFormThe form solved in, and the curves it held.
Implementations§
§impl CurveRefit
impl CurveRefit
pub fn requoted(&self, quotes: &[f64]) -> Result<Self, CalibrationError>
pub fn requoted(&self, quotes: &[f64]) -> Result<Self, CalibrationError>
The same ladder at other quotes, one per rung in solve order — every
rung requoted, the rest of the refit kept.
§Errors
CalibrationError::Malformed when quotes does not hold one quote
per rung, or a rung cannot be requoted.
pub fn solve(
&self,
fixings: &FixingStore,
fx: &FxRates,
) -> Result<Calibrated, CalibrationError>
pub fn solve( &self, fixings: &FixingStore, fx: &FxRates, ) -> Result<Calibrated, CalibrationError>
The ladder solved again, by the entry point its form names —
calibrate, calibrate_with or calibrate_cross_currency — so a
solve at the same quotes is the calibration it came from.
§Errors
As the entry point.
Trait Implementations§
§impl Clone for CurveRefit
impl Clone for CurveRefit
§fn clone(&self) -> CurveRefit
fn clone(&self) -> CurveRefit
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more