Generation of a triangular, periodic signal.

Namespace: dsp

Prototype

static Vecf sigtri(int p, int n)

Parameters

pPeriod, in number of samples.
nNumber of points to generate.

Description

Example


  // Demi-période = 10, 200 échantillons
  soit x = sigtri(10, 200);
  Figure f;
  f.plot(x);

See also

sigcar(), sigsin(), sigcos(), sigexp()