Sinusoïd modulated by a Gaussian.

Namespace: dsp

Prototype

static Vecf siggsin(float f, int n, float a=10)

Parameters

fNormalized frequency
nNumber of points to generate.
aDecrease rate.

Description

\[ x_k = e^{-a \left(\frac{k-N/2}{N/2}\right)^2} \cdot \sin \left(2\pi fk\right) \]

Example


  // Fréquence = 0,02 * fréquence d'échantillonnage
  // 1000 échantillons
  soit x = siggsin(0.02, 1000);
  Figure f;
  f.plot(x);

See also

sigtri(), sigsin(), sigcos(), sigexp()