Skip to main content

interpolate_in

Function interpolate_in 

fn interpolate_in<R: Scalar>(nodes: &[f64], vals: &[R], x: R) -> R
Expand description

interpolate with the coordinate itself in the mode: the segment is chosen on the passive value, the weight is mode arithmetic, so a query at a market-dependent coordinate (a bond option’s forward duration) carries the coordinate’s adjoints as well as the nodes’.