c72b6d57938552e0e372173df7655264f6fa9088,sk_dsp_comm/sigsys.py,,lp_samp,#Any#Any#Any#Any#Any#Any#,579

Before Change


    // plot the lowpass spectrum in black
    if shape.lower() == "tri":
        plt.plot(f,lp_tri(f,fb))
    elif shape.lower() == "line":
        plt.plot([fb, fb],line_ampl,"b", linewidth=2)
        plt.plot([-fb, -fb],line_ampl,"b", linewidth=2)
    else:
        print("shape must be tri or line")
    // overlay positive and negative frequency translates
    for n in range(N):
        if shape.lower() == "tri":
            plt.plot(f,lp_tri(f-(n+1)*fs,fb),"--r")

After Change


    A = 1.0
    line_ampl = A/2.*np.array([0, 1])
    // plot the lowpass spectrum in black
    shapes = ["tri", "line"]
    if shape.lower() not in shapes:
        raise ValueError("shape must be tri or line")
    if shape.lower() == "tri":
        plt.plot(f,lp_tri(f,fb))
        // overlay positive and negative frequency translates
        for n in range(N):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mwickert/scikit-dsp-comm
Commit Name: c72b6d57938552e0e372173df7655264f6fa9088
Time: 2017-10-17
Author: chiranthsiddappa@gmail.com
File Name: sk_dsp_comm/sigsys.py
Class Name:
Method Name: lp_samp


Project Name: autonomio/talos
Commit Name: e03b1da510463be2b74dbbffc633ac7973da3869
Time: 2019-02-22
Author: mailme@mikkokotila.com
File Name: talos/__init__.py
Class Name:
Method Name:


Project Name: kermitt2/delft
Commit Name: cc1f889f8066aaa18a999da98145ed8dd05e9a08
Time: 2019-06-12
Author: luca@foppiano.org
File Name: grobidTagger.py
Class Name:
Method Name: