Skip to main content

phase_crossover

Function phase_crossover 

Source
pub fn phase_crossover(points: &[LoopPoint]) -> Option<f64>
Expand description

Where the gain margin is read: the crossing loop_margins takes. The phase (phases) starts from 0 at the first point’s gain; of its crossings of odd multiples of -180 degrees only falling ones count (interpolated on the logarithmic frequency axis, linearly in the phase), and a rising one at |L| > 1 cancels the latest falling one at |L| > 1 (Nyquist). Of those left the one with the largest |L|; None without one.