This commit is contained in:
Ikko Eltociear Ashimine 2024-08-25 09:18:04 +08:00 committed by GitHub
commit fcc63bfacc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ function FFT(size) {
for (let t = 1; this.size > t; t <<= 1) { power++ } for (let t = 1; this.size > t; t <<= 1) { power++ }
// Calculate initial step's width: // Calculate initial step's width:
// * If we are full radix-4 - it is 2x smaller to give inital len=8 // * If we are full radix-4 - it is 2x smaller to give initial len=8
// * Otherwise it is the same as `power` to give len=4 // * Otherwise it is the same as `power` to give len=4
this._width = power % 2 === 0 ? power - 1 : power this._width = power % 2 === 0 ? power - 1 : power