Skip to content

Commit

Permalink
Created database template class. All databases can now inherit from t…
Browse files Browse the repository at this point in the history
…his. Chime and MERL converted.
  • Loading branch information
Lukas Drude authored and boeddeker committed Aug 16, 2019
1 parent dc73adc commit 4b4a30e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nt/speech_enhancement/noise/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import numpy as np


def get_energy(x, axis=None):
return np.sum(np.abs(x * x.conj()), axis=axis)


def get_variance_for_zero_mean_signal(X):
return np.mean(X.real ** 2 + X.imag ** 2)

Expand Down

0 comments on commit 4b4a30e

Please sign in to comment.