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

Method _decompose

pywt/_wavelet_packets.py:494–510  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

492 overwrite=overwrite)
493
494 def _decompose(self):
495 """
496 See also
497 --------
498 dwt2 : for 2D Discrete Wavelet Transform output coefficients.
499 """
500 if self.is_empty:
501 data_ll, data_lh, data_hl, data_hh = None, None, None, None
502 else:
503 data_ll, (data_hl, data_lh, data_hh) =\
504 dwt2(self.data, self.wavelet, self.mode, axes=self.axes)
505 self._create_subnode(self.LL, data_ll)
506 self._create_subnode(self.LH, data_lh)
507 self._create_subnode(self.HL, data_hl)
508 self._create_subnode(self.HH, data_hh)
509 return (self._get_node(self.LL), self._get_node(self.HL),
510 self._get_node(self.LH), self._get_node(self.HH))
511
512 def _reconstruct(self, update):
513 data_ll, data_lh, data_hl, data_hh = None, None, None, None

Callers

nothing calls this directly

Calls 3

_create_subnodeMethod · 0.95
dwt2Function · 0.85
_get_nodeMethod · 0.45

Tested by

no test coverage detected