pyFDN.edc#
- pyFDN.edc(ir, axis=0)[source]#
Energy decay curve: backward cumulative sum of squared signal along an axis.
EDC(t) = sum(ir[t:]^2), so the curve decreases from total energy to zero. Typically used with impulse responses with shape (n_samples, n_channels).
- Parameters:
ir (array-like) – Signal(s). If 1D, EDC of that signal. If 2D (e.g. samples x channels), EDC is computed along the time axis for each channel.
axis (int, optional) – Axis along which time runs (default 0). EDC is computed along this axis.
- Returns:
Same shape as ir. Values are non-negative and non-increasing along axis.
- Return type:
np.ndarray