comparison data/model/FFTModel.h @ 334:aa8dbac62024

* Pass StorageAdviser::Criteria into FFTModel constructor etc
author Chris Cannam
date Sun, 11 Nov 2007 20:31:12 +0000
parents c022976d18e8
children 700cd3350391 6f6ab834449d
comparison
equal deleted inserted replaced
333:1afaf98dbf11 334:aa8dbac62024
58 WindowType windowType, 58 WindowType windowType,
59 size_t windowSize, 59 size_t windowSize,
60 size_t windowIncrement, 60 size_t windowIncrement,
61 size_t fftSize, 61 size_t fftSize,
62 bool polar, 62 bool polar,
63 StorageAdviser::Criteria criteria = StorageAdviser::NoCriteria,
63 size_t fillFromColumn = 0); 64 size_t fillFromColumn = 0);
64 ~FFTModel(); 65 ~FFTModel();
65 66
66 float getMagnitudeAt(size_t x, size_t y) { 67 float getMagnitudeAt(size_t x, size_t y) {
67 return m_server->getMagnitudeAt(x << m_xshift, y << m_yshift); 68 return m_server->getMagnitudeAt(x << m_xshift, y << m_yshift);
172 int m_xshift; 173 int m_xshift;
173 int m_yshift; 174 int m_yshift;
174 175
175 FFTDataServer *getServer(const DenseTimeValueModel *, 176 FFTDataServer *getServer(const DenseTimeValueModel *,
176 int, WindowType, size_t, size_t, size_t, 177 int, WindowType, size_t, size_t, size_t,
177 bool, size_t); 178 bool, StorageAdviser::Criteria, size_t);
178 179
179 size_t getPeakPickWindowSize(PeakPickType type, size_t sampleRate, 180 size_t getPeakPickWindowSize(PeakPickType type, size_t sampleRate,
180 size_t bin, float &percentile) const; 181 size_t bin, float &percentile) const;
181 }; 182 };
182 183