Discret impulsion.

Namespace: dsp

Prototype

static Vecf sigimp(int n, int p=0)

Parameters

nNumber of points to generate.
pImpulsion position (in samples).

Description

Example

  soit x = sigimp(100);

  Figure f;
  f.plot(x, "|bo");