Skip to main content

sweep_poly

Function sweep_poly 

Source
pub fn sweep_poly(t: &[f64], poly: &[f64], phi: f64) -> Vec<f64>
Expand description

A cosine whose instantaneous frequency is the polynomial poly(t) (highest power first; SciPy’s sweep_poly): cos(2π ∫₀ᵗ poly + φ₀), phi in degrees.