comparison data/model/test/TestFFTModel.h @ 1685:0e9840a381b5 single-point

Update tests for most recent changes
author Chris Cannam
date Wed, 03 Apr 2019 16:19:20 +0100
parents c170b8d0433c
children b92bdcd4954b
comparison
equal deleted inserted replaced
1684:95396c9382e3 1685:0e9840a381b5
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);
157 } 155 }
158 156
159 void cosine_simple_rect() { 157 void cosine_simple_rect() {
160 MockWaveModel mwm({ Cosine }, 16, 4); 158 MockWaveModel mwm({ Cosine }, 16, 4);
161 // Cosine: output is purely real. Note the sign is flipped 159 // Cosine: output is purely real. Note the sign is flipped