Skip to main content

bartlett

Function bartlett 

Source
pub fn bartlett(m: usize) -> Array<f64>
Expand description

Equivalent of np.bartlett(M): the Bartlett (triangular) window of m points.

use rustnum as np;
assert_eq!(np::bartlett(5).to_vec(), [0.0, 0.5, 1.0, 0.5, 0.0]);