delay_line

Delay the input signal by an integer number of samples.

Namespace: dsp::filter

Prototype

sptr<FilterGen<T>> delay_line(unsigned int n)

Parameters

nInteger delay ( \(n \geq 0\))

Description

This filter produce as many output samples as input samples. The samples preceding the first one are assumed to be null.

Example


  // Retard de 10 échantillons
  soit retard = ligne_a_retard<float>(10);

  soit x = linspace(0, 1, 20),
       y = retard->step(x);