Commit 10e3f448 authored by John Whelan's avatar John Whelan
Browse files

PulsarCrossCorr_v2: replaced by-hand round with lrintf()

Original: 182e84b3d9f56f5112333c57de1e17756f05ae53
parent d5d14a2a
......@@ -225,7 +225,7 @@ int XLALCalculateCrossCorrSigmaUnshifted
for (j=0; j < numSFTs; j++) {
sftIndex = indexList->data[j];
psd = &(psds->data[sftIndex.detInd]->data[sftIndex.sftInd]);
freqInd = (UINT8) floor( (freq - psd->f0)/psd->deltaF + 0.5 );
freqInd = (UINT8) lrintf( (freq - psd->f0)/psd->deltaF );
psdData->data[j] = psd->data->data[freqInd];
}
......
Markdown is supported
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