fn read<R: Scalar>( attachments: &[f64], correlations: &[R], attachment: f64, ) -> R
Linear in attachment between points, flat beyond either end.