The conversion from FFT bin to frequency is a simple scale factor
Ok, lets call this factor 'f'.
I am not sure I have understood your suggestions therefore.
Assuming you have your values in m_data, what is an array of doubles:
virtual QPointF YourSeriesData
::sample(size_t i
) const {
return QPointF( f
* toFFTbin
(i
), m_data
[i
]);
// do your scaling here }
virtual QPointF YourSeriesData::sample(size_t i) const
{
return QPointF( f * toFFTbin(i), m_data[i]); // do your scaling here
}
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks