Skip to content

Commit 37b02fc

Browse files
committed
remove hilbert2
1 parent 45da7f1 commit 37b02fc

6 files changed

Lines changed: 0 additions & 237 deletions

File tree

diffsptk/functional.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,33 +1138,6 @@ def hilbert(x: Tensor, fft_length: int | None = None, dim: int = -1) -> Tensor:
11381138
return nn.HilbertTransform._func(x, fft_length=fft_length, dim=dim)
11391139

11401140

1141-
def hilbert2(
1142-
x: Tensor,
1143-
fft_length: ArrayLike[int] | int | None = None,
1144-
dim: ArrayLike[int] = (-2, -1),
1145-
) -> Tensor:
1146-
"""Compute the analytic signal using the Hilbert transform.
1147-
1148-
Parameters
1149-
----------
1150-
x : Tensor [shape=(..., T1, T2, ...)]
1151-
The input signal.
1152-
1153-
fft_length : int, list[int], or None
1154-
The number of FFT bins. If None, set to (:math:`T1`, :math:`T2`).
1155-
1156-
dim : list[int]
1157-
The dimensions along which to take the Hilbert transform.
1158-
1159-
Returns
1160-
-------
1161-
out : Tensor [shape=(..., T1, T2, ...)]
1162-
The analytic signal.
1163-
1164-
"""
1165-
return nn.TwoDimensionalHilbertTransform._func(x, fft_length=fft_length, dim=dim)
1166-
1167-
11681141
def histogram(
11691142
x: Tensor,
11701143
n_bin: int = 10,

diffsptk/modules/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
from .griffin import GriffinLim
6363
from .grpdelay import GroupDelay
6464
from .hilbert import HilbertTransform
65-
from .hilbert2 import TwoDimensionalHilbertTransform
6665
from .histogram import Histogram
6766
from .ialaw import ALawExpansion
6867
from .ica import IndependentComponentAnalysis

diffsptk/modules/hilbert2.py

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

docs/source/modules/hilbert.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,3 @@ hilbert
77
:members:
88

99
.. autofunction:: diffsptk.functional.hilbert
10-
11-
.. seealso::
12-
13-
:ref:`hilbert2`

docs/source/modules/hilbert2.rst

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

tests/test_hilbert2.py

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

0 commit comments

Comments
 (0)