Skip to main content

crossing

Function crossing 

Source
pub fn crossing(x: &[f64], y: &[f64], target: f64) -> Option<f64>
Expand description

The coordinate at which the waveform first reaches target.

Interpolated between the two samples that straddle it, and answered for the first straddle in either direction. A waveform that never reaches the value has no crossing.