Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Holters <[email protected]>
  • Loading branch information
wheeheee and martinholters authored Oct 29, 2024
1 parent cb7c3c5 commit 57560e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Filters/filt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ end
filtfilt(b::AbstractVector, a::AbstractVector, x::AbstractArray)
Filter `x` in the forward and reverse directions using either a
`FilterCoefficients` object `coef`, or the filters `b` and / or `a`
`FilterCoefficients` object `coef`, or the coefficients `b` and optionally `a`
as in [`filt`](@ref). The initial state of the filter is computed so
that its response to a step function is steady state. Before
filtering, the data is extrapolated at both ends with an
odd-symmetric extension of length
`min(3*(max(length(b), length(a))-1), size(x, 1) - 1)`
`min(3*(max(length(b), length(a))-1), size(x, 1) - 1)`.
Because `filtfilt` applies the given filter twice, the effective
filter order is twice the order of `coef`. The resulting signal has
Expand Down

0 comments on commit 57560e0

Please sign in to comment.