Skip to content

Commit

Permalink
Add Remez Filter Order Estimation (#429) (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmithnh09 authored Nov 22, 2022
1 parent 356a5f5 commit b9c0925
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 84 deletions.
13 changes: 11 additions & 2 deletions docs/src/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ The design method is [`Butterworth`](@ref), [`Chebyshev1`](@ref), [`Chebyshev2`]
necessary parameters for the method that affect the shape of the response,
such as filter order, ripple, and attenuation. [Filter order estimation methods](@ref order-est-methods)
are available in [`buttord`](@ref), [`cheb1ord`](@ref), [`cheb2ord`](@ref),
and [`ellipord`](@ref) if the corner frequencies for different IIR filter types are known.
and [`ellipord`](@ref) if the corner frequencies for different IIR filter types are known. [`remezord`](@ref)
can be used for an initial FIR filter order estimate.

```@docs
analogfilter
Expand Down Expand Up @@ -121,7 +122,9 @@ Chebyshev2
Elliptic
```

### [IIR filter order estimation methods](@id order-est-methods)
### [Filter order estimation methods](@id order-est-methods)

#### IIR filter order estimation methods

```@docs
buttord
Expand All @@ -130,6 +133,12 @@ cheb2ord
ellipord
```

#### FIR filter order estimation methods

```@docs
remezord
```

#### FIR filter design methods

```@docs
Expand Down
15 changes: 8 additions & 7 deletions src/Filters/Filters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export FilterCoefficients,
coefb

include("filt.jl")
export DF2TFilter,
export DF2TFilter,
filtfilt,
tdfilt,
tdfilt!,
fftfilt,
fftfilt!

include("design.jl")
export FilterType,
export FilterType,
Butterworth,
Chebyshev1,
Chebyshev2,
Expand All @@ -46,21 +46,22 @@ export FilterType,
resample_filter

include("filt_order.jl")
export buttord,
export buttord,
ellipord,
cheb1ord,
cheb2ord
cheb2ord,
remezord


include("response.jl")
export freqresp,
export freqresp,
phaseresp,
grpdelay,
impresp,
stepresp

include("stream_filt.jl")
export FIRFilter,
export FIRFilter,
outputlength,
inputlength,
reset!,
Expand All @@ -69,7 +70,7 @@ export FIRFilter,
timedelay

include("remez_fir.jl")
export remez,
export remez,
RemezFilterType,
filter_type_bandpass,
filter_type_differentiator,
Expand Down
Loading

0 comments on commit b9c0925

Please sign in to comment.