Skip to content

Stateful filtering fails with multi-dim array #372

@hergum

Description

@hergum

Using more than one dimension in the input array makes filt fail for stateful filter.

s = rand(10,3)
df = digitalfilter(Lowpass(0.25), Butterworth(4))
f = DF2TFilter(df)
filt(f,s)

ERROR: MethodError: no method matching filt(::DF2TFilter{SecondOrderSections{Float64,Float64},Array{Float64,2}}, ::Array{Float64,2})

One-dimensional input works as expected. Two-dimensional inputs works along the first dimension, as expected, for stateless filtering filt(df,s).

Any ideas on how to make this work according to the doc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions