Skip to content
Snippets Groups Projects
Commit 11fc50e9 authored by Simon Bjurek's avatar Simon Bjurek
Browse files

added docstrings

parent 6698c9a9
Branches
No related tags found
1 merge request!461Finalize earliest deadline scheduler
Pipeline #154841 passed
......@@ -264,6 +264,7 @@ def direct_form_1_iir(
mult_properties: Optional[Union[Dict[str, int], Dict[str, Dict[str, int]]]] = None,
add_properties: Optional[Union[Dict[str, int], Dict[str, Dict[str, int]]]] = None,
) -> SFG:
"""Generates a direct-form IIR filter of type I with coefficients a and b."""
if len(a) != len(b):
raise ValueError("size of coefficient lists a and b are not the same")
if name is None:
......@@ -318,6 +319,7 @@ def direct_form_2_iir(
mult_properties: Optional[Union[Dict[str, int], Dict[str, Dict[str, int]]]] = None,
add_properties: Optional[Union[Dict[str, int], Dict[str, Dict[str, int]]]] = None,
) -> SFG:
"""Generates a direct-form IIR filter of type II with coefficients a and b."""
if len(a) != len(b):
raise ValueError("size of coefficient lists a and b are not the same")
if name is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment