0376f5717aa2674ffa05f4cdf9b265402853a9aa,scipy/signal/windows.py,,gaussian,#Any#Any#Any#,1095

Before Change


    >>> plt.xlabel("Normalized frequency [cycles per sample]")

    
    if int(M) != M or M < 0:
        raise ValueError("Window length M must be a non-negative integer")
    if M == 0:
        return np.array([])
    if M == 1:
        return np.ones(1, "d")
    odd = M % 2
    if not sym and not odd:
        M = M + 1
    n = np.arange(0, M) - (M - 1.0) / 2.0
    sig2 = 2 * std * std
    w = np.exp(-n ** 2 / sig2)
    if not sym and not odd:
        w = w[:-1]
    return w


def general_gaussian(M, p, sig, sym=True):
    rReturn a window with a generalized Gaussian shape.

After Change


    >>> plt.xlabel("Normalized frequency [cycles per sample]")

    
    if _len_guards(M):
        return np.ones(M)
    M, needs_trunc = _extend(M, sym)

    n = np.arange(0, M) - (M - 1.0) / 2.0
    sig2 = 2 * std * std
    w = np.exp(-n ** 2 / sig2)

    return _truncate(w, needs_trunc)


def general_gaussian(M, p, sig, sym=True):
    rReturn a window with a generalized Gaussian shape.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 15

Non-data size: 34

Instances


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: gaussian


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: nuttall


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: kaiser


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: hann


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: triang


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: blackman


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: exponential


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: gaussian


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: general_gaussian


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: cosine


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: blackmanharris


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: barthann


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: flattop


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: hamming


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: bartlett


Project Name: scipy/scipy
Commit Name: 0376f5717aa2674ffa05f4cdf9b265402853a9aa
Time: 2016-08-02
Author: endolith@gmail.com
File Name: scipy/signal/windows.py
Class Name:
Method Name: bohman