Skip to content

Commit 99b650d

Browse files
committed
Update readme.md
1 parent 4f36fd8 commit 99b650d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,20 @@ filter(data, { coefs: sos })
119119

120120
Steeper cutoff than Butterworth for the same order – at the cost of passband ripple.
121121

122-
$|H(j\omega)|^2 = 1/(1 + \varepsilon^2 T_N^2(\omega/\omega_c))$ — $T_N$ is the Nth Chebyshev polynomial (oscillates in passband, grows fast in stopband). $\varepsilon = \sqrt{10^{R_p/10} - 1}$.<br>
123-
**Default 1 dB ripple · –34 dB at 2× fc · 8.7% overshoot · 256 samples settling**<br>
122+
$|H(j\omega)|^2 = 1/(1 + \varepsilon^2 T_N^2(\omega/\omega_c))$ — $T_N$ is the Nth Chebyshev polynomial (oscillates in passband, grows fast in stopband). $\varepsilon = \sqrt{10^{R_p/10} - 1}$.
123+
124+
**Default 1 dB ripple · –34 dB at 2× fc · 8.7% overshoot · 256 samples settling**
125+
124126
**Use when**: sharper cutoff than Butterworth, passband ripple tolerable.<br>
125127
**Not for**: passband flatness (use butterworth/legendre), waveform shape (use bessel).<br>
126128
**scipy**: `scipy.signal.cheby1`. **MATLAB**: `cheby1`.
127129

128-
<img src="plot/chebyshev.svg">
129-
130130
```js
131131
let sos = chebyshev(4, 1000, 44100, 1) // 1 dB ripple
132132
```
133133

134+
<img src="plot/chebyshev.svg">
135+
134136

135137
### `chebyshev2(order, fc, fs, attenuation?, type?)`
136138

0 commit comments

Comments
 (0)