@@ -28,7 +28,7 @@ function sequencesApproximatelyEqual(sequence1, sequence2, delta) {
28
28
const delta = 1e-6 ;
29
29
30
30
describe ( 'fastFourierTransform' , ( ) => {
31
- it ( 'should calculate the radix-2 discrete fourier transform after zero padding ' , ( ) => {
31
+ it ( 'should calculate the radix-2 discrete fourier transform #1 ' , ( ) => {
32
32
const input = [ new ComplexNumber ( { re : 0 , im : 0 } ) ] ;
33
33
const expectedOutput = [ new ComplexNumber ( { re : 0 , im : 0 } ) ] ;
34
34
const output = fastFourierTransform ( input ) ;
@@ -38,7 +38,7 @@ describe('fastFourierTransform', () => {
38
38
expect ( sequencesApproximatelyEqual ( input , invertedOutput , delta ) ) . toBe ( true ) ;
39
39
} ) ;
40
40
41
- it ( 'should calculate the radix-2 discrete fourier transform after zero padding ' , ( ) => {
41
+ it ( 'should calculate the radix-2 discrete fourier transform #2 ' , ( ) => {
42
42
const input = [
43
43
new ComplexNumber ( { re : 1 , im : 2 } ) ,
44
44
new ComplexNumber ( { re : 2 , im : 3 } ) ,
@@ -59,7 +59,7 @@ describe('fastFourierTransform', () => {
59
59
expect ( sequencesApproximatelyEqual ( input , invertedOut , delta ) ) . toBe ( true ) ;
60
60
} ) ;
61
61
62
- it ( 'should calculate the radix-2 discrete fourier transform after zero padding ' , ( ) => {
62
+ it ( 'should calculate the radix-2 discrete fourier transform #3 ' , ( ) => {
63
63
const input = [
64
64
new ComplexNumber ( { re : - 83656.9359385182 , im : 98724.08038374918 } ) ,
65
65
new ComplexNumber ( { re : - 47537.415125808424 , im : 88441.58381765135 } ) ,
0 commit comments