hgk:pulses
Differences
This shows you the differences between two versions of the page.
hgk:pulses [2015/11/07 15:02] – created michfiel | hgk:pulses [2015/11/17 12:37] (current) – removed michfiel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | === Pulses === | ||
- | |||
- | [[http:// | ||
- | |||
- | A pulse wave form can simple be constructed by adding two saw waves; the phase difference will control the pulse width. | ||
- | |||
- | < | ||
- | double pw = pulseWidth / 2. + 1.; | ||
- | double y1 = ((int)(f * i) % n) / n1; | ||
- | double y2 = ((int)(f * i + pw) % n) / n1; | ||
- | double y = (y1 - y2) * (1 + pulseWidth / n1); | ||
- | </ | ||
- | |||
- | === Comb Filters === | ||
- | |||
- | [[http:// | ||
- | |||
- | The frequency response of a discrete-time system expressed in the Z domain is obtained by making the substitution z=exp(j*omega) | ||
- | |||
- | < | ||
- | double omega = 2 * pi * f/n; | ||
- | double y = sqrt((1. + pow(alpha, 2.)) + 2 * alpha * cos(omega * K)) / 2; | ||
- | </ | ||
hgk/pulses.1446904936.txt.gz · Last modified: 2015/11/07 15:02 by michfiel