Struct CalibrationOptions
pub struct CalibrationOptions {
pub notional: f64,
pub scheme: Interpolation,
pub tolerance: Tolerance,
}Expand description
How a par curve is solved: the rung notional, the interpolation scheme and
the tolerance — every knob of calibrate, gathered so the one-step verb
and a caller who wants the defaults name none of them.
The default notional is one: the residual tolerance is read per unit of money, so one unit pins a par rate well past double precision.
Fields§
§notional: f64The notional each rung’s swap is built on.
scheme: InterpolationThe interpolation scheme the curve is solved under.
tolerance: ToleranceHow hard the solver tries.
Trait Implementations§
§impl Clone for CalibrationOptions
impl Clone for CalibrationOptions
§fn clone(&self) -> CalibrationOptions
fn clone(&self) -> CalibrationOptions
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 CalibrationOptions
§impl Debug for CalibrationOptions
impl Debug for CalibrationOptions
Auto Trait Implementations§
impl Freeze for CalibrationOptions
impl RefUnwindSafe for CalibrationOptions
impl Send for CalibrationOptions
impl Sync for CalibrationOptions
impl Unpin for CalibrationOptions
impl UnsafeUnpin for CalibrationOptions
impl UnwindSafe for CalibrationOptions
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