bfc15526354399bdd615f06cd5db7efd911e6eea,librosa/feature.py,,rms,#,326

Before Change


  """
  N,K = np.shape(S)

  rms = np.sqrt(np.sum(S*S,axis = 0)/N)
  return rms


@cache

After Change


        // By default, use a magnitude spectrogram
        S = librosa.stft(y, n_fft=n_fft, hop_length=hop_length)

    return np.sqrt(np.mean(np.abs(S)**2, axis=0))


@cache
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: librosa/librosa
Commit Name: bfc15526354399bdd615f06cd5db7efd911e6eea
Time: 2014-12-29
Author: brian.mcfee@nyu.edu
File Name: librosa/feature.py
Class Name:
Method Name: rms


Project Name: nilearn/nilearn
Commit Name: 48282d57a0f11094d71c7310898ab347e6b847b3
Time: 2019-03-25
Author: gilles.de.hollander@gmail.com
File Name: nilearn/signal.py
Class Name:
Method Name: clean


Project Name: nilearn/nilearn
Commit Name: 48282d57a0f11094d71c7310898ab347e6b847b3
Time: 2019-03-25
Author: gilles.de.hollander@gmail.com
File Name: nilearn/signal.py
Class Name:
Method Name: _standardize