bfbc5f55b9a9f43ac099f7d3345d2a01ecadf754,librosa/feature.py,,delta,#,624

Before Change



    if pad:
        padding         = [(0, 0)]  * data.ndim
        padding[axis]   = (order, 0)
        delta_x              = np.pad(delta_x, padding, mode="constant")

    return delta_x

After Change


          delta matrix of ``data``.
    """

    half_length     = 1 + int(np.floor(width / 2))
    window          = np.arange(half_length - 1, -half_length, -1)
    
    // Pad out the data by repeating the border values (delta=0)
    padding         = [(0, 0)]  * data.ndim
    padding[axis]   = (half_length, half_length)
    delta_x         = np.pad(data, padding, mode="edge")

    for _ in range(order):
        delta_x     = scipy.signal.lfilter(window, 1, delta_x, axis=axis)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: librosa/librosa
Commit Name: bfbc5f55b9a9f43ac099f7d3345d2a01ecadf754
Time: 2014-02-27
Author: brm2132@columbia.edu
File Name: librosa/feature.py
Class Name:
Method Name: delta


Project Name: tiberiu44/TTS-Cube
Commit Name: 9cf2bcdb24f23a17ec11e69b8885851771dfd3d8
Time: 2018-10-25
Author: boros@adobe.com
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: __init__


Project Name: librosa/librosa
Commit Name: d54cd0f1d9ace03bccc29206bc273fa38e878b34
Time: 2013-03-09
Author: brm2132@columbia.edu
File Name: librosa/__init__.py
Class Name:
Method Name: stft