Verified Commit 668f3656 authored by Duncan Macleod's avatar Duncan Macleod Committed by Adam Mercer

lal: fixed missing factor in mkl PSD

(cherry picked from commit 18fd13c1)
parent bf5f951c
...@@ -295,6 +295,7 @@ int POWER_SPECTRUM_FUNCTION(REAL_VECTOR_TYPE * spec, const REAL_VECTOR_TYPE * da ...@@ -295,6 +295,7 @@ int POWER_SPECTRUM_FUNCTION(REAL_VECTOR_TYPE * spec, const REAL_VECTOR_TYPE * da
REAL_TYPE re = plan->tmp[2 * k - 1]; REAL_TYPE re = plan->tmp[2 * k - 1];
REAL_TYPE im = plan->tmp[2 * k]; REAL_TYPE im = plan->tmp[2 * k];
spec->data[k] = re * re + im * im; spec->data[k] = re * re + im * im;
spec->data[k] *= 2.0; /* accounts for negative frequency part */
} }
/* Nyquist frequency */ /* Nyquist frequency */
......
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