a0055917b6f6a35cd114c49bf0c75b07d7c9bb10,pyroomacoustics/realtime/dft.py,DFT,analysis,#DFT#Any#,108
Before Change
try:
np.multiply(self.analysis_window, x, x)
except:
self.analysis_window = self.analysis_window.astype(x.dtype,
copy=False)
np.multiply(self.analysis_window, x, x)
// apply DFT
if self.transform == "fftw":
self.a[:,] = x
self.X[:,] = self.forward()
After Change
// check for valid input
if x.shape != self.x.shape:
raise ValueError("Invalid input dimensions! Got (%d, %d), expecting (%d, %d)."
% (x.shape[0], x.shape[1],
self.x.shape[0], self.x.shape[1]))
// apply window if needed
if self.analysis_window is not None:
np.multiply(self.analysis_window, x, x)
// apply DFT
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: LCAV/pyroomacoustics
Commit Name: a0055917b6f6a35cd114c49bf0c75b07d7c9bb10
Time: 2018-05-26
Author: eric.bezzam@epfl.ch
File Name: pyroomacoustics/realtime/dft.py
Class Name: DFT
Method Name: analysis
Project Name: stellargraph/stellargraph
Commit Name: 789d65f38f0949a3f03f61908a207cb558746769
Time: 2019-12-19
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/layer/preprocessing_layer.py
Class Name: GraphPreProcessingLayer
Method Name: call
Project Name: scikit-learn-contrib/DESlib
Commit Name: 0e17f47e9a4920e276bb61b60d6de16264bc6bcf
Time: 2017-12-29
Author: rafaelmenelau@gmail.com
File Name: pythonds/util/prob_functions.py
Class Name:
Method Name: entropy_func