Skip to main content

Jonathan S. Smith. The local mean decomposition and its application to EEG perception data. Journal of the Royal Society Interface, 2005, 2(5): 443-454

Project description

PyLMD

Method of decomposing signal into Product Functions

This project implements the paper:

Jonathan S. Smith. The local mean decomposition and its application to EEG perception data. Journal of the Royal Society Interface, 2005, 2(5):443-454

How to install?

pip install PyLMD

requires:

  1. numpy
  2. scipy

Examples

>>> import numpy as np
>>> from PyLMD import LMD
>>> x = np.linspace(0, 100, 101)
>>> y = 2 / 3 * np.sin(x * 30) + 2 / 3 * np.sin(x * 17.5) + 4 / 5 * np.cos(x * 2)
>>> lmd = LMD()
>>> PFs, resdue = lmd.lmd(y)
>>> PFs.shape
(6, 101)

Example

Parameters

INCLUDE_ENDPOINTS : bool, (default: True)

Whether to treat the endpoint of the signal as a pseudo-extreme point

max_smooth_iteration : int, (default: 12)

Maximum number of iterations of moving average algorithm.

max_envelope_iteration : int, (default: 200)

Maximum number of iterations when separating local envelope signals.

envelope_epsilon : float, (default: 0.01)

Terminate processing when obtaining pure FM signal.

convergence_epsilon : float, (default: 0.01)

Terminate processing when modulation signal converges.

max_num_pf : int, (default: 8)

The maximum number of PFs generated.

Return

PFs: numpy array

The decompose functions arrange is arranged from high frequency to low frequency.

residue: numpy array

residual component

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyLMD-1.0.3.tar.gz (177.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyLMD-1.0.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file PyLMD-1.0.3.tar.gz.

File metadata

  • Download URL: PyLMD-1.0.3.tar.gz
  • Upload date:
  • Size: 177.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for PyLMD-1.0.3.tar.gz
Algorithm Hash digest
SHA256 62c9d2b18113497030e274e70e976da5dbe01ee4a994223735279170659ca5d9
MD5 ebbdfecd2c976fe93994cbc0cf57c915
BLAKE2b-256 03a3dc075564ea5e3ba9746a99788276b48544d10806d255cd66d747da3f7930

See more details on using hashes here.

File details

Details for the file PyLMD-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: PyLMD-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for PyLMD-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df38de22f7674818eed420136b72525beb42ae2e213e78c6cee0f5c271b40572
MD5 c9d4aad27b7bd4d4cfeef7b797ff938c
BLAKE2b-256 55f2e9b5c86935c689f31a534145ea2d05df58494d0347210482eb4fafb2dac8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page