comparison data/fft/FFTFileCacheReader.cpp @ 1086:9f4505ac9072

Tidy dense time-value model API a bit; add first simple unit test for FFT model
author Chris Cannam
date Wed, 10 Jun 2015 17:06:02 +0100
parents 027d8b943be5
children
comparison
equal deleted inserted replaced
1085:bf6f64dabe73 1086:9f4505ac9072
23 #include "base/Exceptions.h" 23 #include "base/Exceptions.h"
24 24
25 #include <iostream> 25 #include <iostream>
26 26
27 //#define DEBUG_FFT_FILE_CACHE_READER 1 27 //#define DEBUG_FFT_FILE_CACHE_READER 1
28
29 28
30 // The underlying matrix has height (m_height * 2 + 1). In each 29 // The underlying matrix has height (m_height * 2 + 1). In each
31 // column we store magnitude at [0], [2] etc and phase at [1], [3] 30 // column we store magnitude at [0], [2] etc and phase at [1], [3]
32 // etc, and then store the normalization factor (maximum magnitude) at 31 // etc, and then store the normalization factor (maximum magnitude) at
33 // [m_height * 2]. In compact mode, the factor takes two cells. 32 // [m_height * 2]. In compact mode, the factor takes two cells.