comparison data/model/test/TestFFTModel.h @ 1681:c170b8d0433c single-point

Quick test with a peculiar transform size. I'm puzzled as to why we have 7 columns and not 6
author Chris Cannam
date Fri, 29 Mar 2019 19:16:43 +0000
parents 48e9f538e6e9
children 0e9840a381b5
comparison
equal deleted inserted replaced
1680:c9a15ee5dc1d 1681:c170b8d0433c
150 { { {}, { 0.f, 2.f }, {}, {}, {} } }, 4); 150 { { {}, { 0.f, 2.f }, {}, {}, {} } }, 4);
151 test(&mwm, RectangularWindow, 8, 8, 8, 2, 151 test(&mwm, RectangularWindow, 8, 8, 8, 2,
152 { { {}, { 0.f, 2.f }, {}, {}, {} } }, 4); 152 { { {}, { 0.f, 2.f }, {}, {}, {} } }, 4);
153 test(&mwm, RectangularWindow, 8, 8, 8, 3, 153 test(&mwm, RectangularWindow, 8, 8, 8, 3,
154 { { {}, {}, {}, {}, {} } }, 4); 154 { { {}, {}, {}, {}, {} } }, 4);
155 test(&mwm, RectangularWindow, 4, 4, 7, 3, // prime transform size
156 { { {}, {}, {} } }, 6);
155 } 157 }
156 158
157 void cosine_simple_rect() { 159 void cosine_simple_rect() {
158 MockWaveModel mwm({ Cosine }, 16, 4); 160 MockWaveModel mwm({ Cosine }, 16, 4);
159 // Cosine: output is purely real. Note the sign is flipped 161 // Cosine: output is purely real. Note the sign is flipped