Skip to content
Snippets Groups Projects
Commit 916efa7f authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-561: Convert the sample window first to a double before a division

I am afraid that the 0Hz central frequency can be attributed to an integer
divided by a double.  This should at least remove the uncertainty.
parent dae9a567
No related branches found
No related tags found
No related merge requests found
......@@ -397,7 +397,7 @@ namespace LOFAR
currentSubBand.centralFrequency;
currentSubBand.dataSet->centralFrequencyUnit().value = "Hz";
currentSubBand.dataSet->timeResolution().value =
SPECTRAL_TRANSFORM_SIZE /
static_cast< double >(SPECTRAL_TRANSFORM_SIZE) /
(frame.header.sampleFreq * 1000000.0);
currentSubBand.dataSet->timeResolutionUnit().value =
"s";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment