.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/creating_and_transforming_sfgs/two_tap_fir_sfg.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_creating_and_transforming_sfgs_two_tap_fir_sfg.py: ================== Two-tap FIR filter ================== .. GENERATED FROM PYTHON SOURCE LINES 6-20 .. image-sg:: /examples/creating_and_transforming_sfgs/images/sphx_glr_two_tap_fir_sfg_001.png :alt: two tap fir sfg :srcset: /examples/creating_and_transforming_sfgs/images/sphx_glr_two_tap_fir_sfg_001.png :class: sphx-glr-single-img .. code-block:: Python from b_asic import SFG, Delay, Input, Output x = Input(name="x") d0 = Delay(x) y = Output( 0.3 * x + 0.7 * d0, name="y", ) fir = SFG(x, y, name='fir') fir .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.017 seconds) .. _sphx_glr_download_examples_creating_and_transforming_sfgs_two_tap_fir_sfg.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: two_tap_fir_sfg.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: two_tap_fir_sfg.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: two_tap_fir_sfg.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_