Skip to content

Commit d9ec01f

Browse files
committed
whenxuan: create the notebook for vme
1 parent 52ba822 commit d9ec01f

5 files changed

Lines changed: 407 additions & 14 deletions

File tree

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ plot_IMFs(signal, IMFs) # per-channel panels
100100
| :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: | :---: |
101101
| [`EMD`](https://github.com/wwhenxuan/PySDKit/blob/main/pysdkit/_emd/emd.py) (Empirical Mode Decomposition) | [[paper]](https://royalsocietypublishing.org/doi/abs/10.1098/rspa.1998.0193) | [[code]](https://www.mathworks.com/help/signal/ref/emd.html) | ✔️ |
102102
| [`MEMD`](https://github.com/wwhenxuan/PySDKit/blob/main/pysdkit/_emd/memd.py) (Multivariate Empirical Mode Decomposition) | [[paper]](https://royalsocietypublishing.org/doi/full/10.1098/rspa.2009.0502) | [[code]](https://www.mathworks.com/matlabcentral/fileexchange/71270-fast-and-adaptive-multivariate-and-multidimensional-emd) | ✔️ |
103-
| [`BEMD`](https://github.com/wwhenxuan/PySDKit/blob/main/pysdkit/_emd2d/bemd.py) (Bidimensional Empirical Mode Decomposition) | [[paper]](https://www.sciencedirect.com/science/article/abs/pii/S0262885603000945) | [[code]](https://github.com/laszukdawid/PyEMD/blob/master/PyEMD/BEMD.py) | ✔️ |
104103
| [`EEMD`](https://github.com/wwhenxuan/PySDKit/blob/main/pysdkit/_emd/eemd.py) (Ensemble Empirical Mode Decomposition) | [[paper]](https://www.sciencedirect.com/topics/physics-and-astronomy/ensemble-empirical-mode-decomposition) | [[code]](https://github.com/laszukdawid/PyEMD/blob/master/PyEMD/EEMD.py) | ✔️ |
105104
| [`REMD`](https://github.com/wwhenxuan/PySDKit/blob/main/pysdkit/_emd/remd.py) (Robust Empirical Mode Decomposition) | [[paper]](https://www.sciencedirect.com/science/article/pii/S0019057821003785) | [[code]](https://www.mathworks.com/matlabcentral/fileexchange/70032-robust-empirical-mode-decomposition-remd) | ✔️ |
106105
| [`EMD2D`](https://github.com/wwhenxuan/PySDKit/blob/main/pysdkit/_emd2d/emd2d.py) (Empirical Mode Decomposition 2D for images) | [[paper]](http://aquador.vovve.net/IEMD/) | [[code]](http://aquador.vovve.net/IEMD/) | ✔️ |

‎examples/vmd/vme.ipynb‎

Lines changed: 399 additions & 0 deletions
Large diffs are not rendered by default.

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ include = ["pysdkit*"]
7373
"pysdkit._tid.data" = ["*.npy"]
7474
"pysdkit._imd" = ["data/*.npy"]
7575
"pysdkit._imd.data" = ["*.npy"]
76+
"pysdkit._vmd" = ["data/*.npy"]
77+
"pysdkit._vmd.data" = ["*.npy"]
7678
"pysdkit._tfa" = ["data/*.npy"]
7779
"pysdkit._tfa.data" = ["*.npy"]

‎pysdkit/__init__.py‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
from ._vmd import MVMD
8787

8888
# Variational Mode Extraction, to extract a specific mode from the signal
89-
from ._vmd import VME
89+
from ._vmd import VME, vme
9090

9191
# Orthogonalized Variational Mode Decomposition
9292
from ._vmd import OVMD
@@ -159,8 +159,7 @@
159159

160160

161161
def greet():
162-
print(
163-
r"""
162+
print(r"""
164163
____ ____ ____ _ __ _ _
165164
| _ \ _ _ / ___| | _ \ | |/ /(_)| |_
166165
| |_) || | | |\___ \ | | | || ' / | || __|
@@ -170,14 +169,12 @@ def greet():
170169
171170
A Python library for signal decomposition algorithms.
172171
https://github.com/wwhenxuan/PySDKit
173-
"""
174-
)
172+
""")
175173

176174

177175
def print_functions():
178176
""""""
179-
print(
180-
"""
177+
print("""
181178
_______________________________________________________________
182179
Algorithm Name | Abbreviation
183180
_______________________________________________________________
@@ -233,8 +230,7 @@ def print_functions():
233230
Multiple Seasonal-Trend decomposition (LOESS) | MSTL
234231
Hilbert-Huang Transform | HHT
235232
_______________________________________________________________
236-
"""
237-
)
233+
""")
238234

239235

240236
__all__ = [
@@ -277,6 +273,7 @@ def print_functions():
277273
"DD_ACMD",
278274
"MVMD",
279275
"VME",
276+
"vme",
280277
"OVMD",
281278
"svmd",
282279
"SVMD",

‎pysdkit/_emd2d/bemd.py‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)