Skip to content

zpk2tf and freqz functions implementation #2969

@alykhaled

Description

@alykhaled

I've created an implementation for zpk2tf function. The function is used to convert a zero-pole-gain representation of a filter to a transfer function representation where the return value is a array of numerator and denominator coefficients. The function is used in the design of digital filters.
The equivalent function in Matlab is zp2tf(z,p,k) and in Python is scipy.signal.zpk2tf(z,p,k).

I've also created an implementation for freqz function. The function is used to compute the frequency response of a digital filter. where it takes the numerator and denominator coefficients as input and returns the frequency response as an array of complex numbers.
The equivalent function in Matlab is freqz(b,a) and in Python is scipy.signal.freqz(b,a).

I want to create a PR but I don't know the right category for this functions, should it be in src/function/special or create a new category for it named signal or filter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions