ae3adf597bf1b7f879a5b0beb89b932576a9f4b1,scipy/signal/windows.py,,nuttall,#Any#Any#,352

Before Change


    M, needs_trunc = _extend(M, sym)

    a = [0.3635819, 0.4891775, 0.1365995, 0.0106411]
    n = np.arange(0, M)
    fac = n * 2 * np.pi / (M - 1.0)
    w = (a[0] - a[1] * np.cos(fac) +
         a[2] * np.cos(2 * fac) - a[3] * np.cos(3 * fac))

    return _truncate(w, needs_trunc)

After Change


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

    w = _cos_win(M, [0.3635819, 0.4891775, 0.1365995, 0.0106411])

    return _truncate(w, needs_trunc)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


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


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


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


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