Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 0f9a83f
  • /
  • doc
  • /
  • usage.rst
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:c52c22e7238fab70ef940f5fac8f0a81d1540ae9
directory badge
swh:1:dir:dec0d2372a7e7e7111f619c162710f5d15089cd8

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
usage.rst
Usage
=============

Typical Usage
-------------

Majority, if not all, methods follow the same usage pattern:

* Import method
* Initiate method
* Apply method on data

On vanilla EMD this is as

.. code-block:: python

    from PyEMD import EMD
    emd = EMD()
    imfs = emd(s)

Parameters
----------

The decomposition can be changed by adjusting parameters related to either sifting or stopping conditions.

Sifting
```````
The sifting depends on the used method so these parameters ought to be looked within the methods.
However, the typical parameters relate to spline method or the number of mirroring points.


Stopping conditions
```````````````````
All methods have the same two conditions, `FIXE` and `FIXE_H`, for stopping which relate to the number of sifting iterations.
Setting parameter `FIXE` to any positive value will fix the number of iterations for each IMF to be exactly `FIXE`.

Example:

.. code-block:: python

    emd = EMD()
    emd.FIXE = 10
    imfs = emd(s)

Parameter `FIXE_H` relates to the number of iterations when the proto-IMF signal fulfils IMF conditions, i.e. number of extrema and zero-crossings differ at most by one and the mean is close to zero. This means that there will be at least `FIXE_H` iteration per IMF.

Example:

.. code-block:: python

    emd = EMD()
    emd.FIXE_H = 5
    imfs = emd(s)

When both `FIXE` and `FIXE_H` are 0 then other conditions are checked. These can be checking for convergence between consecutive iterations or whether the amplitude of output is below acceptable range.

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API