Skip to content

Commit c75d5be

Browse files
committed
whenxuan: create the gdmd and unittest
1 parent 5e1ce7d commit c75d5be

4 files changed

Lines changed: 665 additions & 0 deletions

File tree

‎pysdkit/__init__.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
# Swarm Decomposition
5050
from ._osd import SWD, swd
5151

52+
# Generalized Dispersion Mode Decomposition
53+
from ._gdmd import GDMD, gdmd
54+
5255
# Variational Mode Decomposition
5356
from ._vmd import vmd, VMD
5457

@@ -157,6 +160,7 @@ def print_functions():
157160
Robust Local Mean Decomposition | RLMD
158161
Singular Spectral Analysis | SSA
159162
Swarm Decomposition | SWD
163+
Generalized Dispersion Mode Decomposition | GDMD
160164
Variational Mode Decomposition | VMD
161165
Multivariate Variational Mode Decomposition | MVMD
162166
Variational Mode Extraction | VME
@@ -201,6 +205,8 @@ def print_functions():
201205
"SSA",
202206
"SWD",
203207
"swd",
208+
"GDMD",
209+
"gdmd",
204210
"vmd",
205211
"VMD",
206212
"ACMD",

‎pysdkit/_gdmd/__init__.py‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
Created on 2025/07/31
4+
@author: Whenxuan Wang
5+
@email: wwhenxuan@gmail.com
6+
7+
Generalized Dispersion Mode Decomposition (GDMD).
8+
"""
9+
10+
from .gdmd import (
11+
GDMD,
12+
gdmd,
13+
gdmd_core,
14+
curve_smooth,
15+
differ,
16+
make_dispersive_signal,
17+
spectrum_to_time,
18+
unilateral_spectrum,
19+
tf_spec_from_gd,
20+
)
21+
22+
__all__ = [
23+
"GDMD",
24+
"gdmd",
25+
"gdmd_core",
26+
"curve_smooth",
27+
"differ",
28+
"make_dispersive_signal",
29+
"spectrum_to_time",
30+
"unilateral_spectrum",
31+
"tf_spec_from_gd",
32+
]

0 commit comments

Comments
 (0)