MCPcopy Create free account
hub / github.com/PyWavelets/pywt / _decompose

Method _decompose

pywt/_wavelet_packets.py:646–659  ·  view source on GitHub ↗

See also -------- dwt2 : for 2D Discrete Wavelet Transform output coefficients.

(self)

Source from the content-addressed store, hash-verified

644 return None
645
646 def _decompose(self):
647 """
648 See also
649 --------
650 dwt2 : for 2D Discrete Wavelet Transform output coefficients.
651 """
652 if self.is_empty:
653 coefs = {key: None for key in self.PARTS}
654 else:
655 coefs = dwtn(self.data, self.wavelet, self.mode, axes=self.axes)
656
657 for key, data in coefs.items():
658 self._create_subnode(key, data)
659 return (self._get_node(key) for key in self.PARTS)
660
661 def _reconstruct(self, update):
662 coeffs = {key: None for key in self.PARTS}

Callers

nothing calls this directly

Calls 3

_create_subnodeMethod · 0.95
_get_nodeMethod · 0.95
dwtnFunction · 0.85

Tested by

no test coverage detected