MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / WindowInitializer

Class WindowInitializer

numpy_ml/utils/windows.py:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143
144
145class WindowInitializer:
146 def __call__(self, window):
147 if window == "hamming":
148 return hamming
149 elif window == "blackman_harris":
150 return blackman_harris
151 elif window == "hann":
152 return hann
153 elif window == "generalized_cosine":
154 return generalized_cosine
155 else:
156 raise NotImplementedError("{}".format(window))

Callers 1

mel_spectrogramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected