Skip to main content

chirp

Function chirp 

Source
pub fn chirp(
    t: &[f64],
    f0: f64,
    t1: f64,
    f1: f64,
    method: ChirpMethod,
    phi: f64,
) -> Result<Vec<f64>, ErrorsJSL>
Expand description

A swept-frequency cosine cos(φ(t) + φ₀) (SciPy’s chirp, phi in degrees), where the phase φ(t) = 2π ∫₀ᵗ f(τ) dτ integrates the instantaneous frequency of the chosen sweep.