File: other-functions.rst

package info (click to toggle)
pywavelets 1.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,680 kB
  • sloc: python: 8,849; ansic: 5,134; makefile: 93
file content (75 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.. _ref-other:

.. currentmodule:: pywt

===============
Other functions
===============


Integrating wavelet functions
-----------------------------

.. autofunction:: integrate_wavelet

The result of the call depends on the ``wavelet`` argument:

* for orthogonal and continuous wavelets - an integral of the
  wavelet function specified on an x-grid::

    [int_psi, x_grid] = integrate_wavelet(wavelet, precision)

* for other wavelets - integrals of decomposition and
  reconstruction wavelet functions and a corresponding x-grid::

    [int_psi_d, int_psi_r, x_grid] = integrate_wavelet(wavelet, precision)


Central frequency of ``psi`` wavelet function
---------------------------------------------

.. autofunction:: central_frequency

.. autofunction:: scale2frequency


Quadrature Mirror Filter
------------------------

.. autofunction:: qmf

Orthogonal Filter Banks
-----------------------

.. autofunction:: orthogonal_filter_bank


Example Datasets
----------------

The following example datasets are available in the module ``pywt.data``:

  ============  =======================================
    **name**               **description**
  ============  =======================================
   ecg           ECG waveform (1024 samples)
   aero          grayscale image (512x512)
   ascent        grayscale image (512x512)
   camera        grayscale image (512x512)
   nino          sea surface temperature (264 samples)
   demo_signal   various synthetic 1d test signals
  ============  =======================================

Each can be loaded via a function of the same name.

.. currentmodule:: pywt.data
.. autofunction:: demo_signal

**Example:**

.. sourcecode:: python

    >>> import pywt
    >>> camera = pywt.data.camera()
    >>> doppler = pywt.data.demo_signal('doppler', 1024)
    >>> available_signals = pywt.data.demo_signal('list')