Module Expr Str Import alias identifier Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv Num Call NameLoad NameLoad Assign NameStore BinOpMult BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore BinOpMult BinOpSub NameLoad BinOpDiv NameLoad Num NameLoad If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Num orelse If BoolOpAnd CompareNotEq NameLoad Num CompareEq NameLoad BinOpDiv NameLoad BinOpMult Num NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv Call AttributeLoad NameLoad attr BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd CompareNotEq NameLoad Num CompareEq NameLoad BinOpDiv UnaryOpUSub NameLoad BinOpMult Num NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv Call AttributeLoad NameLoad attr BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpDiv Call AttributeLoad NameLoad attr BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpDiv Call AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad NameLoad BinOpSub Num BinOpMult BinOpDiv BinOpMult BinOpMult Num NameLoad NameLoad NameLoad BinOpDiv BinOpMult BinOpMult Num NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv Num Call NameLoad NameLoad Assign NameStore BinOpMult BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore BinOpMult BinOpSub NameLoad BinOpDiv NameLoad Num NameLoad If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpSub Num NameLoad BinOpDiv BinOpMult Num NameLoad AttributeLoad NameLoad attr orelse If BoolOpAnd CompareNotEq NameLoad Num CompareEq NameLoad BinOpDiv NameLoad BinOpMult Num NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpDiv NameLoad Call AttributeLoad NameLoad attr Num BinOpAdd BinOpMult BinOpAdd Num BinOpDiv Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr BinOpMult Num NameLoad BinOpMult BinOpSub Num BinOpDiv Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr BinOpMult Num NameLoad orelse If BoolOpAnd CompareNotEq NameLoad Num CompareEq NameLoad BinOpDiv UnaryOpUSub NameLoad BinOpMult Num NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpDiv NameLoad Call AttributeLoad NameLoad attr Num BinOpAdd BinOpMult BinOpAdd Num BinOpDiv Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr BinOpMult Num NameLoad BinOpMult BinOpSub Num BinOpDiv Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr BinOpMult Num NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpAdd Call AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad BinOpSub Num NameLoad NameLoad BinOpMult BinOpMult BinOpMult Num NameLoad BinOpDiv NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpDiv BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad BinOpAdd Num NameLoad NameLoad BinOpDiv BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad BinOpSub Num BinOpMult BinOpDiv BinOpMult BinOpMult Num NameLoad NameLoad NameLoad BinOpDiv BinOpMult BinOpMult Num NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv Num Call NameLoad NameLoad Assign NameStore BinOpMult BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad Num NameLoad Assign NameStore BinOpMult BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr UnaryOpUSub BinOpMult BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv Num Call NameLoad NameLoad Assign NameStore BinOpMult BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpDiv NameLoad Num NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A 
============================================
Pulse Shaping Filters (:mod:`commpy.filters`)
============================================

.. autosummary::
   :toctree: generated/

   rcosfilter          -- Raised Cosine (RC) Filter.
   rrcosfilter         -- Root Raised Cosine (RRC) Filter.
   gaussianfilter      -- Gaussian Filter.
   rectfilter          -- Rectangular Filter.

 N/A numpy np N/A __all__ N/A rcosfilter rrcosfilter gaussianfilter rectfilter rcosfilter N/A N/A N alpha Ts Fs N/A N/A N/A 
    Generates a raised cosine (RC) filter (FIR) impulse response.

    Parameters
    ----------
    N : int
        Length of the filter in samples.

    alpha : float
        Roll off factor (Valid values are [0, 1]).

    Ts : float
        Symbol period in seconds.

    Fs : float
        Sampling Rate in Hz.

    Returns
    -------

    h_rc : 1-D ndarray (float)
        Impulse response of the raised cosine filter.

    time_idx : 1-D ndarray (float)
        Array containing the time indices, in seconds, for the impulse response.
     N/A T_delta N/A 1 N/A float Fs N/A time_idx N/A N/A N/A N/A np arange N N/A N 2 T_delta N/A sample_num N/A N/A np arange N N/A h_rc N/A N/A np zeros N dtype float N/A x sample_num N/A N/A t N/A N/A x N/A N 2 T_delta N/A N/A t 0.0 N/A N/A N/A h_rc N/A x 1.0 N/A N/A N/A N/A alpha 0 N/A t N/A Ts N/A 2 alpha N/A N/A N/A h_rc N/A x N/A N/A N/A np pi 4 N/A N/A N/A np sin N/A N/A N/A np pi t Ts N/A N/A N/A np pi t Ts N/A N/A N/A N/A alpha 0 N/A t N/A N/A Ts N/A 2 alpha N/A N/A N/A h_rc N/A x N/A N/A N/A np pi 4 N/A N/A N/A np sin N/A N/A N/A np pi t Ts N/A N/A N/A np pi t Ts N/A N/A N/A h_rc N/A x N/A N/A N/A N/A np sin N/A N/A N/A np pi t Ts N/A N/A N/A np pi t Ts N/A N/A N/A np cos N/A N/A N/A N/A np pi alpha t Ts N/A 1 N/A N/A N/A N/A 2 alpha t Ts N/A N/A N/A 2 alpha t Ts N/A N/A time_idx h_rc N/A rrcosfilter N/A N/A N alpha Ts Fs N/A N/A N/A 
    Generates a root raised cosine (RRC) filter (FIR) impulse response.

    Parameters
    ----------
    N : int
        Length of the filter in samples.

    alpha : float
        Roll off factor (Valid values are [0, 1]).

    Ts : float
        Symbol period in seconds.

    Fs : float
        Sampling Rate in Hz.

    Returns
    ---------

    h_rrc : 1-D ndarray of floats
        Impulse response of the root raised cosine filter.

    time_idx : 1-D ndarray of floats
        Array containing the time indices, in seconds, for
        the impulse response.
     N/A T_delta N/A 1 N/A float Fs N/A time_idx N/A N/A N/A N/A np arange N N/A N 2 T_delta N/A sample_num N/A N/A np arange N N/A h_rrc N/A N/A np zeros N dtype float N/A x sample_num N/A N/A t N/A N/A x N/A N 2 T_delta N/A N/A t 0.0 N/A N/A N/A h_rrc N/A x N/A N/A 1.0 alpha N/A N/A 4 alpha N/A np pi N/A N/A N/A N/A alpha 0 N/A t N/A Ts N/A 4 alpha N/A N/A N/A h_rrc N/A x N/A N/A alpha N/A N/A np sqrt 2 N/A N/A N/A 1 N/A 2 N/A np pi N/A N/A np sin N/A N/A np pi N/A 4 alpha N/A N/A 1 N/A 2 N/A np pi N/A N/A np cos N/A N/A np pi N/A 4 alpha N/A N/A N/A N/A alpha 0 N/A t N/A N/A Ts N/A 4 alpha N/A N/A N/A h_rrc N/A x N/A N/A alpha N/A N/A np sqrt 2 N/A N/A N/A 1 N/A 2 N/A np pi N/A N/A np sin N/A N/A np pi N/A 4 alpha N/A N/A 1 N/A 2 N/A np pi N/A N/A np cos N/A N/A np pi N/A 4 alpha N/A N/A N/A h_rrc N/A x N/A N/A N/A N/A np sin N/A N/A N/A N/A np pi t N/A 1 alpha Ts N/A N/A N/A 4 alpha N/A t Ts N/A N/A np cos N/A N/A N/A N/A np pi t N/A 1 alpha Ts N/A N/A N/A N/A np pi t N/A 1 N/A N/A N/A N/A 4 alpha t Ts N/A N/A N/A 4 alpha t Ts Ts N/A N/A time_idx h_rrc N/A gaussianfilter N/A N/A N alpha Ts Fs N/A N/A N/A 
    Generates a gaussian filter (FIR) impulse response.

    Parameters
    ----------

    N : int
        Length of the filter in samples.

    alpha : float
        Roll off factor (Valid values are [0, 1]).

    Ts : float
        Symbol period in seconds.

    Fs : float
        Sampling Rate in Hz.

    Returns
    -------

    h_gaussian : 1-D ndarray of floats
        Impulse response of the gaussian filter.

    time_index : 1-D ndarray of floats
        Array containing the time indices for the impulse response.
     N/A T_delta N/A 1 N/A float Fs N/A time_idx N/A N/A N/A N/A np arange N N/A N 2 T_delta N/A h_gaussian N/A N/A N/A N/A np sqrt N/A np pi alpha N/A N/A np exp N/A N/A N/A N/A N/A np pi time_idx alpha N/A N/A N/A np pi time_idx alpha N/A N/A time_idx h_gaussian N/A rectfilter N/A N/A N Ts Fs N/A N/A N/A 
    Generates a rectangular filter (FIR) impulse response.

    Parameters
    ----------

    N : int
        Length of the filter in samples.

    Ts : float
        Symbol period in seconds.

    Fs : float
        Sampling Rate in Hz.

    Returns
    -------

    h_rect : 1-D ndarray of floats
        Impulse response of the rectangular filter.

    time_index : 1-D ndarray of floats
        Array containing the time indices for the impulse response.
     N/A h_rect N/A N/A np ones N N/A T_delta N/A 1 N/A float Fs N/A time_idx N/A N/A N/A N/A np arange N N/A N 2 T_delta N/A N/A time_idx h_rect N/A