Skip to main content

sawtooth

Function sawtooth 

Source
pub fn sawtooth(t: &[f64], width: f64) -> Vec<f64>
Expand description

A sawtooth of period 2π rising from −1 to 1 over the first width · 2π and falling back over the rest (SciPy’s sawtooth); width = 0.5 gives a triangle wave. NaN for a width outside [0, 1].