Skip to content

Commit cf00b93

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 45b18a8 commit cf00b93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maths/transforms/fourier_transform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import List, Union
22
import numpy as np
33

4+
45
def fourier_transform(signal: list[int | float]) -> list[complex]:
56
"""
67
Compute the discrete Fourier transform (DFT) of a signal.
@@ -28,6 +29,7 @@ def fourier_transform(signal: list[int | float]) -> list[complex]:
2829
result.append(summation)
2930
return result
3031

32+
3133
if __name__ == "__main__":
3234
sample_signal = [1, 2, 3, 4]
3335
result = fourier_transform(sample_signal)

0 commit comments

Comments
 (0)