【文件属性】:
文件名称:DFT的matlab源代码-fft:任意长度的FFT实现
文件大小:79KB
文件格式:ZIP
更新时间:2021-05-26 05:18:39
系统开源
DFT的matlab源代码英尺
这是任意长度的FFT实现。
这包括Cooley-Tukey
FFT(如果大小为2的幂,则使用)和Bluestein
FFT(用作后备)。
例子
复合DFT
/
IDFT
import
DFT
from
"fft"
;
const
size
=
1000
;
const
dft
=
new
DFT
(
size
)
;
const
xr
=
dft
.
createVec
(
"Float64Array"
)
;
//
Float32Array
and
Array
are
also
OK.
const
xi
=
dft
.
createVec
(
"Float64Array"
)
;
//
The
instance
of
xr
and
xi
must
be
the
same.
for
(
let
t
=
0
;
t
<
1000
;
t
++
)
{
xr
[
t
]
=
Math
.
random
(
)
;
xi
[
t
]
=
Math
.
random
(
)
;
}
const
[
Xr
,
Xi
]
=
dft
.
complexDFT
(
x
【文件预览】:
fft-main
----rollup.config.js(665B)
----package.json(1KB)
----__tests__()
--------index.ts(3KB)
----.eslintrc.json(334B)
----jest.config.js(70B)
----LICENSE(1KB)
----package-lock.json(245KB)
----src()
--------CooleyTukey.ts(4KB)
--------list()
--------internal()
--------DFT.ts(2KB)
--------types.ts(662B)
--------index.ts(65B)
--------Bluestein.ts(4KB)
----tsconfig.json(6KB)
----.gitignore(2KB)
----README.md(2KB)
----.eslintignore(43B)