Commit deaedb26 authored by Ewan Barr's avatar Ewan Barr
Browse files

extra debugging

parent 5a784ac9
......@@ -41,6 +41,7 @@ FftSpectrometer<HandlerType>::FftSpectrometer(
float scale = (_input_level * np.sqrt(_nchans))**2;
float offset = scale * dof;
float scaling = scale * std::sqrt(2 * dof);
BOOST_LOG_TRIVIAL(debug) << "Correction factors for 8-bit conversion: offset = " << offset << ", scaling = " << scaling;
BOOST_LOG_TRIVIAL(debug) << "Generating FFT plan";
int n[] = {static_cast<int>(_fft_length)};
CUFFT_ERROR_CHECK(cufftPlanMany(&_fft_plan, 1, n, NULL, 1, _fft_length,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment