Struct ObservationConventions
pub struct ObservationConventions {
pub lookback: u32,
pub shift: u32,
pub cutoff: u32,
pub cap: Option<f64>,
pub floor: Option<f64>,
}Expand description
How an overnight coupon observes its index, beyond the plain daily strip:
the RFR conventions FpML states under calculationParameters (lookback,
observation period shift, lockout) and bounds on each daily rate. Every
count is in business days of the strip’s calendar; the default is the plain
strip.
Fields§
§lookback: u32Each interest day reads the rate this many business days earlier, weighted by the interest day’s own fraction.
shift: u32The whole observation period starts and ends this many business days before the interest period, weighted on its own days.
cutoff: u32The last this-many business days of the period repeat the rate of the first of them: the rate cut-off.
cap: Option<f64>The cap on each daily rate, as a decimal.
floor: Option<f64>The floor on each daily rate, as a decimal.
Implementations§
§impl ObservationConventions
impl ObservationConventions
pub fn observations(
&self,
calendar: &dyn Calendar,
start: NaiveDate,
end: NaiveDate,
index_day_count: DayCountFraction,
) -> Vec<Observation>
pub fn observations( &self, calendar: &dyn Calendar, start: NaiveDate, end: NaiveDate, index_day_count: DayCountFraction, ) -> Vec<Observation>
The observation strip of the interest period [start, end).
Trait Implementations§
§impl Clone for ObservationConventions
impl Clone for ObservationConventions
§fn clone(&self) -> ObservationConventions
fn clone(&self) -> ObservationConventions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ObservationConventions
§impl Debug for ObservationConventions
impl Debug for ObservationConventions
§impl Default for ObservationConventions
impl Default for ObservationConventions
§fn default() -> ObservationConventions
fn default() -> ObservationConventions
§impl PartialEq for ObservationConventions
impl PartialEq for ObservationConventions
§fn eq(&self, other: &ObservationConventions) -> bool
fn eq(&self, other: &ObservationConventions) -> bool
self and other values to be equal, and is used by ==.