Skip to content

Commit 4f36fd8

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

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,19 @@ 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}$.
123-
<br>**Default 1 dB ripple · –34 dB at 2× fc · 8.7% overshoot · 256 samples settling**
124-
125-
```js
126-
let sos = chebyshev(4, 1000, 44100, 1) // 1 dB ripple
127-
```
128-
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>
129124
**Use when**: sharper cutoff than Butterworth, passband ripple tolerable.<br>
130125
**Not for**: passband flatness (use butterworth/legendre), waveform shape (use bessel).<br>
131126
**scipy**: `scipy.signal.cheby1`. **MATLAB**: `cheby1`.
132127

133128
<img src="plot/chebyshev.svg">
134129

130+
```js
131+
let sos = chebyshev(4, 1000, 44100, 1) // 1 dB ripple
132+
```
133+
134+
135135
### `chebyshev2(order, fc, fs, attenuation?, type?)`
136136

137137
Flat passband, equiripple stopband. The ripple goes into the rejection region instead.

0 commit comments

Comments
 (0)