In DSP.jl, some filter design commands return a filter object, while others (like remez
) return a plain Float64 vector. This is inconvenient because many of the package functions don’t take vectors as arguments.
I have browsed the issues list, but I couldn’t figure out what the rationale is for this decision. What would be the difficulty of having remez
and FIRWindow
return a filter object instead of a plain vector?
One can manually convert a vector of coefficients to a PolynomialRatio
, but why force the user to do this, instead of returning a PolynomialRatio
in the first place?